Hello there,
Yes, this is possible.
Go to Dashboard -> Profile Builder -> Settings -> Allow Users to Log in With
And select Email only.
Counter-intuitively, this also affects the registration form.
With the best of regards,
Gabriel
Thread Starter
Pierre
(@ierpe)
Thank you for the fast answer, that solved it!
I’ve been scratching my head trying to get the email address as the user name, but it doesn’t work as expected.
I can create a user in the back end and set the username to be exactly the same as the email address, but when I use the PB form, it converts the address to something without the at-sign and dot.
I.e. test@somedomain.com will become test-somedomain-com.
This happens when I chose ’email only’, which hides the username field from the form, but also when I ‘fake’ the username field with a ‘reply email address’ label, to force the user to enter the email address twice.
Am I overlooking something?
Thanks!
-
This reply was modified 6 years, 6 months ago by
Cyclopaat. Reason: Addded different scenarios
To answer my own question (this usually happens after you post it):
I think a File Manager plugin is the culprit here. As that creates user folders for up- and downloads, the username would not be allowed to have those symbols.
I already had the option to create user folders switched off, but I it looks like the usernames are still converted if they are in fact the same as the email address.
I have also posted a question on the support page of that plugin’s creator…
Hello there @cyclopaat
Yes, this is expected behavior. It’s how the plugin works. The username does get changed to testsomedomain-com
With the best of regards,
Gabriel
Unfortunately, it is not really necessary. In the meantime, I have found that the other plugin only creates user directories that way, since no characters like that can be in a directory name.
However, for your plugin, I do not see this need and it can be ‘fixed’ by putting a piece of code in your (child) theme’s function.php – you even list that on your own site, although the other developer had to point me to it (https://www.cozmoslabs.com/docs/profile-builder-2/developers-knowledge-base/login-logout-register/change-username-format-loggin-email/)
Anyway, I have worked around it as prescribed and maybe you will consider making this permanent.
Thanks!
-
This reply was modified 6 years, 6 months ago by
Cyclopaat.