Veiko Aasa bcadf26ffc
users: More precise username validation
- Username should match [a-zA-Z0-9_.@-], can't start with '-'
- Use Python pwd module to retrieve all users instead of getent command.
- Checking, that a username already exists or is reservered, is case insensitive

Created usernames are now compatible with openldap and nslcd. Didn't change
urlpatterns in case of an invalid username is already created by the admin.

Closes #1773

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-02-09 11:17:44 -05:00
..
2019-12-07 13:08:35 -05:00
2019-12-07 13:08:35 -05:00
2019-12-07 13:08:49 -05:00
2019-12-07 13:08:35 -05:00
2019-12-07 13:08:35 -05:00
2019-12-07 13:08:35 -05:00
2019-12-07 13:08:35 -05:00
2019-12-07 13:08:35 -05:00
2019-12-07 13:08:53 -05:00
2019-12-07 13:08:35 -05:00
2019-12-07 13:08:35 -05:00
2019-12-07 13:08:35 -05:00