Remove workaround try/catch for authenticate bug

This commit is contained in:
Hao Kung 2014-07-17 15:07:34 -07:00
parent bbb848ae1d
commit e74496c079
1 changed files with 3 additions and 11 deletions

View File

@ -28,19 +28,11 @@ namespace Microsoft.AspNet.Identity.Authentication
}
public async Task<bool> IsClientRememeberedAsync(string userId)
{
try
{
var result =
await Context.AuthenticateAsync(TwoFactorRememberedAuthenticationType);
return (result != null && result.Identity != null && result.Identity.Name == userId);
}
// REVIEW: Why does Owin throw this for authenticate?
catch (InvalidOperationException)
{
return false;
}
}
public void RememberClient(string userId)
{