Skip to content

By default, email addresses with more than 30 characters don't work. #66

@sbaechler

Description

@sbaechler

Plata uses email for login:

forms.py, line 67

if getattr(User, 'USERNAME_FIELD', 'username') == 'username':
    params['username'] = email[:30]  # FIXME
user = User.objects.create_user(**params)

the email address can be up to 100 characters, but the authentication form only allows for 30 characters because it references the username field:

def get_authentication_form(self, **kwargs):
    return AuthenticationForm(**kwargs)

There should be a AuthenticationForm by default which has a max_length of 100 characters if this way of authenticating is used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions