mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
fabb76754e
Also fix references from config.yml to configuration.yml
15 lines
365 B
Go
15 lines
365 B
Go
package validator
|
|
|
|
import (
|
|
"github.com/authelia/authelia/internal/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
|
|
}
|
|
}
|