diff --git a/src/Privatezilla/Privatezilla/Settings/Security/DisablePassword.cs b/src/Privatezilla/Privatezilla/Settings/Security/DisablePassword.cs deleted file mode 100644 index 56996b7..0000000 --- a/src/Privatezilla/Privatezilla/Settings/Security/DisablePassword.cs +++ /dev/null @@ -1,55 +0,0 @@ -using Microsoft.Win32; - -namespace Privatezilla.Setting.Security -{ - internal class DisablePassword : SettingBase - { - private const string PasswordKey = @"HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CredUI"; - private const int DesiredValue = 1; - - public override string ID() - { - return Properties.Resources.settingsSecurityDisablePassword; - } - - public override string Info() - { - return Properties.Resources.settingsSecurityDisablePasswordInfo; - } - - public override bool CheckSetting() - { - return !( - RegistryHelper.IntEquals(PasswordKey, "DisablePasswordReveal", DesiredValue) - ); - - } - - public override bool DoSetting() - { - try - { - Registry.SetValue(PasswordKey, "DisablePasswordReveal", DesiredValue, RegistryValueKind.DWord); - return true; - } - catch - { } - - return false; - } - - public override bool UndoSetting() - { - try - { - Registry.SetValue(PasswordKey, "DisablePasswordReveal", 0, RegistryValueKind.DWord); - return true; - } - catch - { } - - return false; - } - - } -} \ No newline at end of file