News:

Follow SMF on Twitter.

Main Menu

Log-in with email

Started by ExSpirit, February 10, 2021, 01:10:09 PM

Previous topic - Next topic

ExSpirit

Is there any setting to log-in with email not with username?

Kindred

no setting needed.  SMF accepts username OR email, always
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

ExSpirit

What about to disable username entry, is that possible?

When user registers on forum username becomes his shown name, so I would like to disable username and allow him to set shown name instead of username at registration page.

Kindred

no.... it is not possible to disable username without recoding things.


this mod will allow them to set their display name on registration
https://custom.simplemachines.org/mods/index.php?mod=1747
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

ExSpirit

Thanks, I'll try this mod. Just need to hide the username field, but I'm not sure where to than change that email is used as username field when data is written to database?

Kindred

please do not hide the username field.  The username is required for ALOT of things in the system. It should be used -- and it can not be changed once the user is registered.

The DISPLAY NAME will be used in all cases of public view -- and can be changed.


Install that mod. (you will probably have to emulate version 2.0 RC2 to get it to install)
then the user will be asked for the login name (aka username) and their display name (aka realname) on registration...  and they will not have the username = displayname, unless they want it to be so.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Illori

Quote from: Kindred on February 10, 2021, 04:24:21 PM
please do not hide the username field.  The username is required for ALOT of things in the system. It should be used -- and it can not be changed once the user is registered.

the username can be changed, but only by admin.

ExSpirit

Why not hdding username field if than I still use username but just place email as value of that field? Is it seen anywhere? Or what would be the problem in that case?

Kindred

having a login username different from email is a better practice...

As for hiding it...   the only people who SEE it are the admin and that user.
UNLESS an account is deleted, in which case, the username becomes the visible name when viewing posts by a deleted account.

Seriously, your BEST option is just to ask the users to add a "display name" when they register.   That way, you're not messing with things that become complicated if you make even a minor mistake.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Aleksi "Lex" Kilpinen

To be perfectly honest, I'd prefer to see it possible to easily disable login by email completely, and force the use of a separate (from both display name and email) username that's filtered to not accept e-mail addresses.
I can't think of a good reason to force e-mail logins.
Slava
Ukraini!


"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

vbgamer45

Could be a good mod idea disable login by email, or only allow login by email.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Aleksi "Lex" Kilpinen

Definitely, could see use for something like that.
Slava
Ukraini!


"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

ExSpirit

Yeah true.

The only reason why I don't want to add Username is because of extra fields at registration - some people hate that and I wanna make it as simple as it can be (if he has to write username + name + email... it's a lot of data for no reason, especially username/email - why would we need both, when only email would be enough).

Kindred

because the SMF system is not designed that way and doing what you suggest has a large potential for screwing up core functionality.

I don't think that people get upset over entering a username, display name and email.... and I am one of the first people to complain about UX issues.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: