-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Maybe it should account for this exception, even if it logs it. And also report a meaningful error to the user (your link has expired ...)
2024-05-29 08:40:29.7115|Default|00-5134c64191ee45f24c59555519159255-31e7c658756f07d8-00||OrchardCore.Try.Controllers.HomeController|ERROR|Error decrypting the string System.Security.Cryptography.CryptographicException: The payload expired at 5/25/2024 8:23:23 AM +00:00.
at Microsoft.AspNetCore.DataProtection.TimeLimitedDataProtector.UnprotectCore(Byte[] protectedData, DateTimeOffset now, DateTimeOffset& expiration)
at Microsoft.AspNetCore.DataProtection.TimeLimitedDataProtector.Unprotect(Byte[] protectedData, DateTimeOffset& expiration)
at Microsoft.AspNetCore.DataProtection.DataProtectionAdvancedExtensions.TimeLimitedWrappingProtector.Unprotect(Byte[] protectedData)
at Microsoft.AspNetCore.DataProtection.DataProtectionCommonExtensions.Unprotect(IDataProtector protector, String protectedData)
at OrchardCore.Try.Controllers.HomeController.Decrypt(String encryptedString) in D:\a\1\s\OrchardCore.Try\Controllers\HomeController.cs:line 209
Metadata
Metadata
Assignees
Labels
No labels