Check if registrationEmailAsUsername is explicitly set to false (#27139)

Closes #27137

Signed-off-by: Peter Keuter <github@peterkeuter.nl>
This commit is contained in:
Peter Keuter 2024-02-22 15:58:04 +01:00 committed by GitHub
parent f95bfdf498
commit 0960114c03
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -387,7 +387,7 @@ export const UserForm = ({
isDisabled={
!user?.id &&
!watchUsernameInput &&
!realm.registrationEmailAsUsername
realm.registrationEmailAsUsername === false
}
variant="primary"
type="submit"