username length problems



  • When people sign up using SSO, they can have username with longer than 16 characters, but when these users try to edit their profile they keep getting 'username too long' error...

    Since they cannot edit their username afterwards, they should either get this error while signing up, or should be able to edit their profile without error.

    Btw, this is not about 1.13, we still could not upgrade yet, we are still on 1.12.2 , fyi.


  • GNU/Linux Admin

    @crazycells The maximum username length is governed by a field in the ACP. If SSO signs up users with longer usernames, then you could always adjust the value to match restrictions from the SSO.



  • @julian said in username length problems:

    @crazycells The maximum username length is governed by a field in the ACP. If SSO signs up users with longer usernames, then you could always adjust the value to match restrictions from the SSO.

    That is already set in ACP; but apparently SSOs (it was facebook in this case) are letting usernames with more than set length.

    I want this to be adjusted while users are signing up (by SSO asking user to shorten username), so we do not have to change their usernames later.


  • Gamers

    Then you will probably have to modify the sso plugin to reject or truncate usernames that are too long.

    I'm not sure if NodeBB should reject things like creating an user by a plugin if the plugin doesn't adhere to admin settings, because there might be valid reasons for doing it. For example - you might have a username length limit, because you want to reserve longer usernames for bot users created by a plugin or something.


Log in to reply
 

Suggested Topics

  • 10
  • 3
  • 13
  • 3
  • 5
| |