core icon indicating copy to clipboard operation
core copied to clipboard

Website > Login > Username using special characters

Open ghost opened this issue 13 years ago • 11 comments

Hi,

Im from Denmark, and would very much like to see the special danish characters: "æ-Æ" "ø-Ø" "å-Å" (small and caps) allowed in usernames.

Is this possible?

Kind Regards Niels

ghost avatar Jan 14 '13 09:01 ghost

Just a remark from my side: This would cause problems with multiple WebDAV clients, there is no standard encoding defined in the standard. (e.g. some clients would encode this with ISO-8859-1 while others would use UTF-8)

LukasReschke avatar Jan 14 '13 10:01 LukasReschke

The same is valid for passwords. There are multiple approaches for solving this:

  • Only allow ASCII chars in the password & username
  • Show a warning if an admin tries to create an user with special characters (+ password change) ("This may not be supported by your client. If you experience problems please try our own sync client or change your password.")

I tried to convert the encoding with #186, but this patch isn't as reliable as I would wish (read: doesn't work in every case). So I'd prefer to go with the first option. (Only allow ASCII chars) - Better to disallow the usage of potential critical chars than have a bad UX.

@jancborchardt What's your opinion on this?

LukasReschke avatar Jan 14 '13 10:01 LukasReschke

I would recommend to only allow ascii characters in usernames. Keep them as simple as possible. There are a lot of external services and protocols where we run into problems. Examples are WebDAV as Lukas described. Ampache has a problem with very long usernames/password. LDAP, CardDAV, ... Simpler is sometimes better.

karlitschek avatar Jan 14 '13 10:01 karlitschek

Yeah, we should keep it at only Ascii characters. There’s no real benefits to allowing more, and lots of potential problems. Most websites with username system do the same.

jancborchardt avatar Jan 15 '13 15:01 jancborchardt

I understand the restriction on login names and home directory names. But why cannot you have accented chars in the names of users that are displayed ? You are allowed to use separate uid's and usernames in the LDAP setup. Why not introduce an LDAP atrribute just for the purpose of displaying in user lists, share owners etc. ?

torlasz avatar Jan 17 '13 21:01 torlasz

That an excellent point and the way we should solve this. We should keep the login name fixed because it is used as reference to external systems and key in our database and so on. So let's keep this simple and unique and not changeable. But we should introduce an Display Name that is used and shown in the Interface like during Login, Share Dialog and so on. And this name can and should contain special characters and can be changed by the Admin.

karlitschek avatar Jan 18 '13 07:01 karlitschek

Maybe it’s good to directly do this as a profile field for »Your Name« (next to email etc). I think we once talked about that. This might be different to the LDAP name though – and could that LDAP name then be used for logging in anyways?

jancborchardt avatar Jan 18 '13 13:01 jancborchardt

Yes. This would be great. The challenge is to find someone to do it as usual ;-) So if someone has some time for a small feature please contact me.

karlitschek avatar Jan 18 '13 13:01 karlitschek

Thanks a lot for the planned improvement! Let me mention though that something similar should be done to the group names as well. Perhaps when creating a group manually you could allow for accented chars (that would be for display) and internally use some unaccented version of the same string for the real id for the group. For LDAP, another attribute would be fine. If you do this, the current labels in the LDAP setup should be renamed.

torlasz avatar Jan 18 '13 15:01 torlasz

For OC 5 display names for users (not for groups yet) are implemented. I think we can close this?

blizzz avatar Feb 21 '13 15:02 blizzz

There's a displayname now. This should be closed thus, shouldn't it?

Niduroki avatar Jul 10 '13 05:07 Niduroki