You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
I have read #124 #396 #464. And I use the method mentioned above to login user with phone number. After read the
get_usermethod ofSQLAlchemyUserDatastore. I foundget_usertry to use_is_numerictransformidentifier(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 beforeget_identity_attributes. I found this will cause bug if someone want to use phone number as the user identity.