Use email as username, remove input for username.

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
neojw1505
Joomla! Apprentice
Joomla! Apprentice
Posts: 45
Joined: Wed Aug 11, 2021 12:44 pm

Use email as username, remove input for username.

Post by neojw1505 » Mon Sep 20, 2021 11:04 am

I have a registration form that looks like this https://prnt.sc/1sy66y7. But I would like to remove the username and name field in the form so that the user will only register using their email and password.

What I am trying to achieve?
- User will register via their email address and password instead of username and password.
- User will login via their email address and password instead of username and password.

What steps did I take:
I went to the registration.xml file (attached as registration.xml) that is responsible for the form display and
commented out the name and username field.

Problems I faced:
After commenting out the name and username field in the registration.xml file, I would get an error when
registering. Image of the error is in the link below:
https://prnt.sc/1sy54op
https://prnt.sc/1sy5tme

* I have also attached the register function code in registration.txt file. The Register() function is
under RegistrationController that was created by Joomla.
You do not have the required permissions to view the files attached to this post.
Last edited by imanickam on Mon Sep 20, 2021 3:05 pm, edited 1 time in total.
Reason: Moved topic » from General Questions/New to Joomla! 3.x to Joomla! 3.x Coding

Post Reply

Return to “Joomla! 3.x Coding”