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
Overwriting the user model (dropping the username field in favor of email) causes registrations to not work. Admin fails with "An unexpected error occurred".
Instead, the username field should be derived from the registered User model's constant USERNAME_FIELD to support custom username fields.
Using either username or email however can lead to undesirable results. A change of name due to marriage, causing both a username and/or email change would cause FIDO2 auths to fail for intransparent reasons for an administrator and could cause some frustration. Might be a thing to consider.
Frankly, I'm not an expert on the matter and am sure there's cryptographic reason either field is used. Reading the W3 specs for id / user handle, it states the following though regarding the field in question:
The user handle MUST NOT contain personally identifying information about the user, such as a username or e-mail address; see § 14.6.1 User Handle Contents for details. The user handle MUST NOT be empty, though it MAY be null.
The text was updated successfully, but these errors were encountered:
Overwriting the user model (dropping the
username
field in favor ofemail
) causes registrations to not work. Admin fails with "An unexpected error occurred".Instead, the username field should be derived from the registered User model's constant
USERNAME_FIELD
to support custom username fields.Using either
username
oremail
however can lead to undesirable results. A change of name due to marriage, causing both ausername
and/oremail
change would cause FIDO2 auths to fail for intransparent reasons for an administrator and could cause some frustration. Might be a thing to consider.Frankly, I'm not an expert on the matter and am sure there's cryptographic reason either field is used. Reading the W3 specs for
id
/user handle
, it states the following though regarding the field in question:The text was updated successfully, but these errors were encountered: