Also add error for previous changes

This commit is contained in:
Melody Becker 2025-04-02 13:45:04 +02:00
parent 420f6e46c0
commit 77f06c752e
Signed by: mstar
SSH key fingerprint: SHA256:9VAo09aaVNTWKzPW7Hq2LW+ox9OdwmTSHRoD4mlz1yI

View file

@ -21,6 +21,11 @@ var (
// The given totp token was recently (90 seconds) used for that username // The given totp token was recently (90 seconds) used for that username
// For security reasons, this case will be caught and blocked // For security reasons, this case will be caught and blocked
ErrTotpRecentlyUsed = errors.New("totp token was used too recently") ErrTotpRecentlyUsed = errors.New("totp token was used too recently")
// The stored data for a passkey registration wasn't formatted correctly
// and thus can't be used
ErrInvalidPasskeyRegistrationData = errors.New(
"stored passkey registration data was formatted badly",
)
) )
// Helper error type to combine two errors into one // Helper error type to combine two errors into one