mirror of
https://github.com/bitwarden/server
synced 2025-12-12 14:23:38 +00:00
remove debugging true condition
This commit is contained in:
@@ -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?
|
||||||
|
|||||||
Reference in New Issue
Block a user