Hi,
Sorry for my English,
I have such a problem. For reasons beyond my control, I cannot use the default frontend user registration method on my website. I thought I would create my registration, but users will be signing up in the users table and will be logging in using the default login module from Joomla. Therefore, I have this question, how does Joomla encrypt the password and decrypt the password? Is there any ready-made function that would use the password provided from my form? And how can I use it in my php script?
I would like the registration to be done my way, and the login of a user already registered would be the default in Joomla.
Regards Adrian
Combining my own registration method with the default login in Joomla Topic is solved
Moderators: ooffick, General Support Moderators
Forum rules
-
- Joomla! Apprentice
- Posts: 24
- Joined: Thu Nov 06, 2014 9:55 am
- AMurray
- Joomla! Exemplar
- Posts: 9606
- Joined: Sat Feb 13, 2010 7:35 am
- Location: Australia
Re: Combining my own registration method with the default login in Joomla
The database already stores the encrypted password using standard encryption methods. I'm not sure what Joomla uses currently, but it used to be MD5. Other hashing methods include bcrypt.
What do you need your registration form to do, other than accept the user registration details and submit them to do the database as normal? (I don't understand your "beyond your control you can't use the standard registration" comment). Are there particular fields you need in the form, or need to rename the field labels (that can be done with language overrides)?
Creating a new component shouldn't be necessary; you could override the registration form component layout and customise it, rather than write a new component from the ground up...
https://docs.joomla.org/How_to_override ... omla!_core
https://docs.joomla.org/How_to_override ... omla!_core
https://docs.joomla.org/J3.x:Layout_Overrides_in_Joomla
What do you need your registration form to do, other than accept the user registration details and submit them to do the database as normal? (I don't understand your "beyond your control you can't use the standard registration" comment). Are there particular fields you need in the form, or need to rename the field labels (that can be done with language overrides)?
Creating a new component shouldn't be necessary; you could override the registration form component layout and customise it, rather than write a new component from the ground up...
https://docs.joomla.org/How_to_override ... omla!_core
https://docs.joomla.org/How_to_override ... omla!_core
https://docs.joomla.org/J3.x:Layout_Overrides_in_Joomla
Regards - A Murray
General Support Moderator
General Support Moderator
-
- Joomla! Apprentice
- Posts: 24
- Joined: Thu Nov 06, 2014 9:55 am
Re: Combining my own registration method with the default login in Joomla
Hi,
Thank You for Your response.
I need to create my own registration form but I want to login default Joomla module.
I have to do such a thing because I changed the behavior of Joomla a little (I want to use it as an engine for the system to extend the warranty). The most serious change was installing it in the prestashop directory and enabling mod rewrite. I also had to change the main index.php file to register.php so that everything was in line with the previous version of this system.
At this point, the page with new user registration in Joomla is not starting, and in the login module, there is no link to user registration.
If you know how to make the registration page come on, then you can help me this way.
The best would be to have a default registration with Joomla.
flex-elektronarzedzia.pl/gwarancje2/
Regards Adrian
Thank You for Your response.
I need to create my own registration form but I want to login default Joomla module.
I have to do such a thing because I changed the behavior of Joomla a little (I want to use it as an engine for the system to extend the warranty). The most serious change was installing it in the prestashop directory and enabling mod rewrite. I also had to change the main index.php file to register.php so that everything was in line with the previous version of this system.
At this point, the page with new user registration in Joomla is not starting, and in the login module, there is no link to user registration.
If you know how to make the registration page come on, then you can help me this way.
The best would be to have a default registration with Joomla.
flex-elektronarzedzia.pl/gwarancje2/
Regards Adrian
- AMurray
- Joomla! Exemplar
- Posts: 9606
- Joined: Sat Feb 13, 2010 7:35 am
- Location: Australia
Re: Combining my own registration method with the default login in Joomla
Sorry; I have no idea what you're trying to do, your explanation doesn't make it any clearer as to why you need your own registration form and why the default one won't work for you.
To display the normal default registration form the normal way, is to make a menu item to the registration component.....and put a login module on your pages(s) in an appropriate module position, based on what the template has in terms of module positions.
Note modifying Joomla is not a good idea - your changes will be overwritten with any update to the core system; preventing the overwrite is not a good reason not to update Joomla - as suggested above, any changes you do should be with overrides.
To display the normal default registration form the normal way, is to make a menu item to the registration component.....and put a login module on your pages(s) in an appropriate module position, based on what the template has in terms of module positions.
Note modifying Joomla is not a good idea - your changes will be overwritten with any update to the core system; preventing the overwrite is not a good reason not to update Joomla - as suggested above, any changes you do should be with overrides.
Regards - A Murray
General Support Moderator
General Support Moderator
- Webdongle
- Joomla! Master
- Posts: 43979
- Joined: Sat Apr 05, 2008 9:58 pm
Re: Combining my own registration method with the default login in Joomla
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
- Per Yngve Berg
- Joomla! Master
- Posts: 30769
- Joined: Mon Oct 27, 2008 9:27 pm
- Location: Romerike, Norway
Re: Combining my own registration method with the default login in Joomla
Have you enabled user registration in the options of user Manager?
You can add your custom stuff by writing a User Profile Plugin.
Don't rename index.php to register.php. You can Rewrite register.php to index.php in the .htaccess file.
You can add your custom stuff by writing a User Profile Plugin.
Don't rename index.php to register.php. You can Rewrite register.php to index.php in the .htaccess file.
-
- Joomla! Apprentice
- Posts: 24
- Joined: Thu Nov 06, 2014 9:55 am
Re: Combining my own registration method with the default login in Joomla
Hi,
I want to thanks Per Yngve Berg for a solution. I forgot about enebled user registration in the options. Now is OK.
Regards Adrian
I want to thanks Per Yngve Berg for a solution. I forgot about enebled user registration in the options. Now is OK.
Regards Adrian