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
Hi, I just noticed something weird with the RegisterSerializer. It has a get_cleaned_data method that seems to assign empty strings to fields whose values haven't been passed during registration. For instance, if I choose to register without a password1 value, then the all-auth adapter sets the password using set_unusable_password().
Presently am working on a project that requires users to be registered without passwords (i.e set_unusable_password() ). So I had to override get_cleaned_data method to make sure password1 is None instead of an empty string.
Shouldn't this be the default implementation? (my thoughts)
Hi, I just noticed something weird with the
RegisterSerializer
. It has aget_cleaned_data
method that seems to assign empty strings to fields whose values haven't been passed during registration. For instance, if I choose to register without apassword1
value, then the all-auth adapter sets the password usingset_unusable_password()
.Presently am working on a project that requires users to be registered without passwords (i.e
set_unusable_password()
). So I had to overrideget_cleaned_data
method to make surepassword1
isNone
instead of an empty string.Shouldn't this be the default implementation? (my thoughts)
The text was updated successfully, but these errors were encountered: