Combining my own registration method with the default login in Joomla Topic is solved

For Joomla! 3.x Coding related discussions, please use: http://groups.google.com/group/joomla-dev-general

Moderator: ooffick

Forum rules
Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.
Post Reply
adrian24
Joomla! Apprentice
Joomla! Apprentice
Posts: 21
Joined: Thu Nov 06, 2014 9:55 am

Combining my own registration method with the default login in Joomla

Post by adrian24 » Thu Apr 15, 2021 8:37 am

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

User avatar
AMurray
Joomla! Champion
Joomla! Champion
Posts: 6657
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Combining my own registration method with the default login in Joomla

Post by AMurray » Thu Apr 15, 2021 9:56 pm

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
Regards,
--------------------------------------------------------------
A Murray
Help you I can, yes!. Post your question, you should. Keep it on topic you must!
Use the Forc....Forum Post Assistant my young Padawan!

adrian24
Joomla! Apprentice
Joomla! Apprentice
Posts: 21
Joined: Thu Nov 06, 2014 9:55 am

Re: Combining my own registration method with the default login in Joomla

Post by adrian24 » Mon Apr 19, 2021 11:44 am

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

User avatar
AMurray
Joomla! Champion
Joomla! Champion
Posts: 6657
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Combining my own registration method with the default login in Joomla

Post by AMurray » Mon Apr 19, 2021 12:30 pm

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.
Regards,
--------------------------------------------------------------
A Murray
Help you I can, yes!. Post your question, you should. Keep it on topic you must!
Use the Forc....Forum Post Assistant my young Padawan!

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 39828
Joined: Sat Apr 05, 2008 9:58 pm

Re: Combining my own registration method with the default login in Joomla

Post by Webdongle » Mon Apr 19, 2021 3:00 pm

adrian24 wrote:
Thu Apr 15, 2021 8:37 am
... For reasons beyond my control, I cannot use the default frontend user registration method on my website. ...
Perhaps install a 3rd part login?
https://extensions.joomla.org/category/ ... -security/
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".

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 27718
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Combining my own registration method with the default login in Joomla

Post by Per Yngve Berg » Mon Apr 19, 2021 4:05 pm

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.

adrian24
Joomla! Apprentice
Joomla! Apprentice
Posts: 21
Joined: Thu Nov 06, 2014 9:55 am

Re: Combining my own registration method with the default login in Joomla

Post by adrian24 » Tue Apr 20, 2021 10:37 am

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


Post Reply

Return to “Joomla! 3.x Coding”