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

Login: Increase max_length of username field for mail addresses #1377

Merged

Conversation

chris34
Copy link
Member

@chris34 chris34 commented Jan 6, 2025

The django form sets max_length of the form field to max_length of the username field in the User model.

However, in Inyoka we also allow to enter email adresses as usernames. These have a higher max_length.

Now the maximum of the email and username model-fields is used (which is at the moment the value of the email-field).

The django form sets `max_length` of the form field to `max_length` of the
`username` field in the `User` *model*.

However, in Inyoka we also allow to enter email adresses as usernames.
These have a higher `max_length`.

Now the maximum of the email and username model-fields is used
(which is at the moment the value of the email-field).
@chris34 chris34 merged commit d14aa74 into inyokaproject:staging Jan 7, 2025
21 checks passed
@chris34 chris34 deleted the login-increase-max-length-user-field branch January 7, 2025 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant