mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
828f565290
This is going to be the v4. Expected improvements: - More reliable due to static typing. - Bump of performance. - Improvement of logging. - Authelia can be shipped as a single binary. - Will likely work on ARM architecture.
15 lines
358 B
Go
15 lines
358 B
Go
package validator
|
|
|
|
import (
|
|
"github.com/clems4ever/authelia/configuration/schema"
|
|
)
|
|
|
|
const defaultTOTPIssuer = "Authelia"
|
|
|
|
// ValidateTOTP validates and update TOTP configuration.
|
|
func ValidateTOTP(configuration *schema.TOTPConfiguration, validator *schema.StructValidator) {
|
|
if configuration.Issuer == "" {
|
|
configuration.Issuer = defaultTOTPIssuer
|
|
}
|
|
}
|