mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
15 lines
654 B
Go
15 lines
654 B
Go
package user
|
|
|
|
import "github.com/uozi-tech/cosy"
|
|
|
|
var (
|
|
e = cosy.NewErrorScope("user")
|
|
ErrPasswordIncorrect = e.New(40301, "password incorrect")
|
|
ErrUserBanned = e.New(40303, "user banned")
|
|
ErrOTPCode = e.New(40304, "invalid otp code")
|
|
ErrRecoveryCode = e.New(40305, "invalid recovery code")
|
|
ErrWebAuthnNotConfigured = e.New(50000, "WebAuthn settings are not configured")
|
|
ErrUserNotEnabledOTPAs2FA = e.New(50001, "user not enabled otp as 2fa")
|
|
ErrOTPOrRecoveryCodeEmpty = e.New(50002, "otp or recovery code empty")
|
|
ErrSessionNotFound = e.New(40401, "session not found")
|
|
)
|