Enabling an Umbraco admin user to disable 2FA for a member (#13369)
* Fix Invalid authentication code bug * Add translation keys for 2fa * Display toggle for 2FA on member * Add TwoFactorEnabled prop when saving member * Handle disabling of 2FA * Fix tests * Changing obsolete msg
This commit is contained in:
committed by
GitHub
parent
37b33641c3
commit
af6b8fc5cb
@@ -34,6 +34,9 @@ public class MemberSave : ContentBaseSave<IMember>
|
||||
[DataMember(Name = "isApproved")]
|
||||
public bool IsApproved { get; set; }
|
||||
|
||||
[DataMember(Name = "isTwoFactorEnabled")]
|
||||
public bool IsTwoFactorEnabled { get; set; }
|
||||
|
||||
private T? GetPropertyValue<T>(string alias)
|
||||
{
|
||||
ContentPropertyBasic? prop = Properties.FirstOrDefault(x => x.Alias == alias);
|
||||
|
||||
Reference in New Issue
Block a user