1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-09 00:41:37 +01:00

ensure fail isn't overwritten with success result (#1018)

This commit is contained in:
Chad Scharf 2020-12-02 17:15:21 -05:00 committed by GitHub
parent 36195eb0c9
commit 77e704e620
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -124,6 +124,7 @@ namespace Bit.Core.IdentityServer
if (device == null) if (device == null)
{ {
await BuildErrorResultAsync("No device information provided.", false, context, user); await BuildErrorResultAsync("No device information provided.", false, context, user);
return;
} }
await BuildSuccessResultAsync(user, context, device, twoFactorRequest && twoFactorRemember); await BuildSuccessResultAsync(user, context, device, twoFactorRequest && twoFactorRemember);
} }