mirror of
https://github.com/bitwarden/server.git
synced 2024-12-23 17:07:42 +01: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(true || !twoFactorRequest && await TwoFactorRequiredAsync(user))
|
||||
if(!twoFactorRequest && await TwoFactorRequiredAsync(user))
|
||||
{
|
||||
context.Result = new GrantValidationResult(TokenRequestErrors.InvalidGrant, "Two factor code required.",
|
||||
// TODO: return something better?
|
||||
|
Loading…
Reference in New Issue
Block a user