Cleanup login page, custom button text
This commit is contained in:
parent
54fb4c7a8a
commit
4c0faa755d
12 changed files with 76 additions and 32 deletions
|
@ -3,12 +3,8 @@ using API.Entities.Enums;
|
|||
|
||||
namespace API.DTOs.Settings;
|
||||
|
||||
public class OidcConfigDto
|
||||
public record OidcConfigDto: OidcPublicConfigDto
|
||||
{
|
||||
/// <inheritdoc cref="ServerSettingKey.OidcAuthority"/>
|
||||
public string? Authority { get; set; }
|
||||
/// <inheritdoc cref="ServerSettingKey.OidcClientId"/>
|
||||
public string? ClientId { get; set; }
|
||||
/// <inheritdoc cref="ServerSettingKey.OidcProvisionAccounts"/>
|
||||
public bool ProvisionAccounts { get; set; }
|
||||
/// <inheritdoc cref="ServerSettingKey.OidcRequireVerifiedEmail"/>
|
||||
|
@ -16,12 +12,9 @@ public class OidcConfigDto
|
|||
/// <inheritdoc cref="ServerSettingKey.OidcProvisionUserSettings"/>
|
||||
public bool ProvisionUserSettings { get; set; }
|
||||
/// <inheritdoc cref="ServerSettingKey.OidcAutoLogin"/>
|
||||
public bool AutoLogin { get; set; }
|
||||
/// <inheritdoc cref="ServerSettingKey.DisablePasswordAuthentication"/>
|
||||
public bool DisablePasswordAuthentication { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if the <see cref="Authority"/> has been set
|
||||
/// Returns true if the <see cref="OidcPublicConfigDto.Authority"/> has been set
|
||||
/// </summary>
|
||||
public bool Enabled => Authority != "";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue