V14: Add usernameIsEmail to the user configuration object (#16759)
* 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
This commit is contained in:
@@ -150,6 +150,7 @@ public class UserPresentationFactory : IUserPresentationFactory
|
||||
{
|
||||
// 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(),
|
||||
});
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -6,6 +6,7 @@ public class CurrenUserConfigurationResponseModel
|
||||
{
|
||||
public bool KeepUserLoggedIn { get; set; }
|
||||
|
||||
[Obsolete("Use the UserConfigurationResponseModel instead. This will be removed in V15.")]
|
||||
public bool UsernameIsEmail { get; set; }
|
||||
|
||||
public required PasswordConfigurationResponseModel PasswordConfiguration { get; set; }
|
||||
|
||||
@@ -6,5 +6,7 @@ public class UserConfigurationResponseModel
|
||||
{
|
||||
public bool CanInviteUsers { get; set; }
|
||||
|
||||
public bool UsernameIsEmail { get; set; }
|
||||
|
||||
public required PasswordConfigurationResponseModel PasswordConfiguration { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user