2019-04-24 21:52:08 +00:00
|
|
|
package regulation
|
|
|
|
|
|
|
|
import "fmt"
|
|
|
|
|
2020-05-02 05:06:39 +00:00
|
|
|
// ErrUserIsBanned user is banned error message.
|
2021-07-08 02:04:43 +00:00
|
|
|
var ErrUserIsBanned = fmt.Errorf("user is banned")
|
2021-11-29 03:09:14 +00:00
|
|
|
|
|
|
|
const (
|
|
|
|
// AuthType1FA is the string representing an auth log for first-factor authentication.
|
|
|
|
AuthType1FA = "1FA"
|
|
|
|
|
|
|
|
// AuthTypeTOTP is the string representing an auth log for second-factor authentication via TOTP.
|
|
|
|
AuthTypeTOTP = "TOTP"
|
|
|
|
|
|
|
|
// AuthTypeFIDO is the string representing an auth log for second-factor authentication via FIDO/CTAP1/U2F.
|
|
|
|
AuthTypeFIDO = "FIDO"
|
|
|
|
|
|
|
|
// AuthTypeFIDO2 is the string representing an auth log for second-factor authentication via FIDO2/CTAP2/Webauthn.
|
|
|
|
// TODO: Add FIDO2.
|
|
|
|
|
|
|
|
// AuthTypeDUO is the string representing an auth log for second-factor authentication via DUO.
|
|
|
|
AuthTypeDUO = "DUO"
|
|
|
|
)
|