1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-02 08:32:50 -05:00

hcaptcha validation on password login (#1398)

This commit is contained in:
Kyle Spearrin
2021-06-16 12:47:41 -04:00
committed by GitHub
parent 1796b1dd8e
commit d2e48a5c2c
8 changed files with 189 additions and 25 deletions

View File

@ -40,6 +40,7 @@ namespace Bit.Core.Settings
public virtual bool DisableEmailNewDevice { get; set; }
public virtual int OrganizationInviteExpirationHours { get; set; } = 120; // 5 days
public virtual string EventGridKey { get; set; }
public virtual CaptchaSettings Captcha { get; set; } = new CaptchaSettings();
public virtual InstallationSettings Installation { get; set; } = new InstallationSettings();
public virtual BaseServiceUriSettings BaseServiceUri { get; set; }
public virtual SqlSettings SqlServer { get; set; } = new SqlSettings();
@ -466,5 +467,11 @@ namespace Bit.Core.Settings
{
public int CacheLifetimeInSeconds { get; set; } = 60;
}
public class CaptchaSettings
{
public string HCaptchaSecretKey { get; set; }
public string HCaptchaSiteKey { get; set; }
}
}
}