mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
16 lines
313 B
Go
16 lines
313 B
Go
package authentication
|
|
|
|
// LevelToString returns a string representation of an authentication.Level.
|
|
func LevelToString(level Level) string {
|
|
switch level {
|
|
case NotAuthenticated:
|
|
return "not_authenticated"
|
|
case OneFactor:
|
|
return "one_factor"
|
|
case TwoFactor:
|
|
return "two_factor"
|
|
}
|
|
|
|
return "invalid"
|
|
}
|