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:
Jacob Overgaard
2024-07-08 16:15:48 +02:00
committed by GitHub
parent 26084d8bb5
commit 512114bcd7
4 changed files with 393 additions and 384 deletions

View File

@@ -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

View File

@@ -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; }

View File

@@ -6,5 +6,7 @@ public class UserConfigurationResponseModel
{
public bool CanInviteUsers { get; set; }
public bool UsernameIsEmail { get; set; }
public required PasswordConfigurationResponseModel PasswordConfiguration { get; set; }
}