mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 23:52:50 -05:00
ensure fail isn't overwritten with success result (#1018)
This commit is contained in:
@ -124,6 +124,7 @@ namespace Bit.Core.IdentityServer
|
||||
if (device == null)
|
||||
{
|
||||
await BuildErrorResultAsync("No device information provided.", false, context, user);
|
||||
return;
|
||||
}
|
||||
await BuildSuccessResultAsync(user, context, device, twoFactorRequest && twoFactorRemember);
|
||||
}
|
||||
|
Reference in New Issue
Block a user