Skip to content
This repository was archived by the owner on Jul 30, 2024. It is now read-only.
This repository was archived by the owner on Jul 30, 2024. It is now read-only.

login with numeric field #604

Description

@stamaimer

I have read #124 #396 #464. And I use the method mentioned above to login user with phone number. After read the get_user method of SQLAlchemyUserDatastore. I found get_user try to use _is_numeric transform identifier(the value of email key in login form) to integer. If the identifier can transform to a integer, it will use as the primary key to get user from user table. I don't know why do this before get_identity_attributes. I found this will cause bug if someone want to use phone number as the user identity.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions