mirror of
https://github.com/bitwarden/server.git
synced 2025-04-06 21:48:12 -05:00
remove debugging true condition
This commit is contained in:
parent
c9d348a0c2
commit
1e16644f52
@ -40,7 +40,7 @@ namespace Bit.Core.Identity
|
|||||||
{
|
{
|
||||||
if(await _userManager.CheckPasswordAsync(user, context.Password))
|
if(await _userManager.CheckPasswordAsync(user, context.Password))
|
||||||
{
|
{
|
||||||
if(true || !twoFactorRequest && await TwoFactorRequiredAsync(user))
|
if(!twoFactorRequest && await TwoFactorRequiredAsync(user))
|
||||||
{
|
{
|
||||||
context.Result = new GrantValidationResult(TokenRequestErrors.InvalidGrant, "Two factor code required.",
|
context.Result = new GrantValidationResult(TokenRequestErrors.InvalidGrant, "Two factor code required.",
|
||||||
// TODO: return something better?
|
// TODO: return something better?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user