Skip to content

Commit

Permalink
V14: Add usernameIsEmail to the user configuration object (#16759)
Browse files Browse the repository at this point in the history
* fix: move usernameIsEmail from the current user to the user configuration since it is a static variable not only relevant to the current user

* update OpenApi.json

* update OpenApi.json

* update OpenApi.json
  • Loading branch information
iOvergaard authored Jul 8, 2024
1 parent 26084d8 commit 512114b
Show file tree
Hide file tree
Showing 4 changed files with 393 additions and 384 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ public Task<UserConfigurationResponseModel> CreateUserConfigurationModelAsync()
{
// You should not be able to invite users if any providers has deny local login set.
CanInviteUsers = _emailSender.CanSendRequiredEmail() && _externalLoginProviders.HasDenyLocalLogin() is false,
UsernameIsEmail = _securitySettings.UsernameIsEmail,
PasswordConfiguration = _passwordConfigurationPresentationFactory.CreatePasswordConfigurationResponseModel(),
});

Expand Down
Loading

0 comments on commit 512114b

Please sign in to comment.