replace static status definition by const
This commit is contained in:
@@ -24,6 +24,12 @@ type Account struct {
|
||||
CreatedAt int64
|
||||
}
|
||||
|
||||
const (
|
||||
AccountStateActive = "active"
|
||||
AccountStateLocked = "locked"
|
||||
AccountStateDisabled = "disabled"
|
||||
)
|
||||
|
||||
var (
|
||||
ErrInvalidCredentials = errors.New("identifiants invalides")
|
||||
ErrAccountLocked = errors.New("compte verrouillé")
|
||||
|
||||
Reference in New Issue
Block a user