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"
|
|
|
|
|
2023-04-11 04:40:09 +00:00
|
|
|
// AuthTypeWebAuthn is the string representing an auth log for second-factor authentication via FIDO2/CTAP2/WebAuthn.
|
|
|
|
AuthTypeWebAuthn = "WebAuthn"
|
2021-11-29 03:09:14 +00:00
|
|
|
|
2021-12-02 10:28:16 +00:00
|
|
|
// AuthTypeDuo is the string representing an auth log for second-factor authentication via DUO.
|
|
|
|
AuthTypeDuo = "Duo"
|
2021-11-29 03:09:14 +00:00
|
|
|
)
|