idea2list52963
idea2list52963

Hello. Tell me, please, on such a question. My site is written in php without using any common cms. I want to use October CMS with blog and forum plugins (Vanilla theme //octobercms.com/theme/rainlab-vanilla) for communication with visitors to my site. I installed October CMS with Vanilla theme in a separate folder of my site / community and moved the database tables to the database that my site uses. What is the best way for me to create an authorization link between my site and October CMS? I need the following bundle conditions to be met: 1) When registering a user through the registration form of my site, I plan to add the user's email and password to the new user record in the user table that October CMS uses 2) On my site there will be blog and forum links to the pages of the corresponding October CMS plugins. If the user is unauthorized, then in these links there will be no user email and password parameters and when you click on these links in / community from October CMS, the user will be redirected to the login / register form of my site. If the user is authorized, then the user’s email and password parameters will be in the link of my site on the blog and forum. When you click on such links with the email and password parameters in October CMS, you will be authorized in October CMS using the email and password parameters of the user from the links, matching them with the user data of the October CMS user table.

Last updated

daftspunk
daftspunk

This is a big question that doesn't have a simple answer. The best place to study would be the Authentication manager that ships with October CMS:

https://github.com/octobercms/library/blob/master/src/Auth/Manager.php

This contains all the authentication logic, including user registration. To perform these tasks in a vanilla PHP instance, you would need to also study how Laravel performs its hashing and session preparation, that involves the APP_KEY configuration value

Good luck!

idea2list52963
idea2list52963

daftspunk said:

This is a big question that doesn't have a simple answer. The best place to study would be the Authentication manager that ships with October CMS:

https://github.com/octobercms/library/blob/master/src/Auth/Manager.php

This contains all the authentication logic, including user registration. To perform these tasks in a vanilla PHP instance, you would need to also study how Laravel performs its hashing and session preparation, that involves the APP_KEY configuration value

Good luck!

Thank you!

1-3 of 3