Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Username & password with a character only #275

Open
DragomirStefanaCatalina opened this issue Apr 6, 2020 · 3 comments
Open

Username & password with a character only #275

DragomirStefanaCatalina opened this issue Apr 6, 2020 · 3 comments

Comments

@DragomirStefanaCatalina
Copy link

Starting point: http://dev.rohelp.ro/en/admin/auth/user/

Expected:
Create a new user consisting of an username & a password with at least couple of characters

Actual:
Able to create a new user consisting of an username & a password with a character only

Screenshot 2020-04-06 at 22 37 50

@AlecsGherghel
Copy link
Collaborator

@catileptic this can be grouped with #236 since both refer to username validation for which we'd have to probably override django's user/group model a bit

@francisc-czobor
Copy link

francisc-czobor commented May 29, 2020

On the dev environment the password validators are deactivated. That's why you can have a one-character password. It's not a problem on the production environment.

@francisc-czobor
Copy link

francisc-czobor commented May 29, 2020

The Django User model doesn't have a min_length constraint. To change that one would have to overwrite the User model and that would vastly increase the complexity. Why is this desired?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants