This commit is contained in:
Your Name 2023-10-09 11:46:36 -04:00
parent 60ce07c983
commit 5079d8fad4
1 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ func Set2faTemplate(t string) bool {
if len(t) != 0 {
r, err := template.New("2fa").Parse(t)
if err != nil {
c.Templates.Registration = r
c.Templates.TwoFA = r
return true
}
}
@ -48,7 +48,7 @@ func Set2faTemplate(t string) bool {
if err != nil {
log.Fatal("scsusers.Set2faTemplate: Default 2fa template MUST compile. Error: " + err.Error())
}
c.Templates.Registration = r
c.Templates.TwoFA = r
return false
}