2019-04-25 04:52:08 +07:00
|
|
|
package regulation
|
|
|
|
|
|
|
|
import "fmt"
|
|
|
|
|
2020-05-02 12:06:39 +07:00
|
|
|
// ErrUserIsBanned user is banned error message.
|
2021-07-08 09:04:43 +07:00
|
|
|
var ErrUserIsBanned = fmt.Errorf("user is banned")
|
2021-11-29 10:09:14 +07: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"
|
|
|
|
)
|