Skip to content

Commit 45bb444

Browse files
authored
Merge pull request #24 from manu-thomas-87/master
Changing the exception type
2 parents 2fc2b55 + ac41c16 commit 45bb444

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AspNetCore.LegacyAuthCookieCompat/LegacyFormsAuthenticationTicketEncryptor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ private byte[] Decrypt(byte[] cookieBlob, HashProvider hasher, bool isHashAppend
180180
if (cookieBlob == null)
181181
{
182182
// signature verification failed
183-
throw new Exception("Signature verification failed");
183+
throw new CryptographicException("Signature verification failed");
184184
}
185185
}
186186

0 commit comments

Comments
 (0)