more
This commit is contained in:
parent
60ce07c983
commit
5079d8fad4
|
@ -35,7 +35,7 @@ func Set2faTemplate(t string) bool {
|
||||||
if len(t) != 0 {
|
if len(t) != 0 {
|
||||||
r, err := template.New("2fa").Parse(t)
|
r, err := template.New("2fa").Parse(t)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
c.Templates.Registration = r
|
c.Templates.TwoFA = r
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -48,7 +48,7 @@ func Set2faTemplate(t string) bool {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal("scsusers.Set2faTemplate: Default 2fa template MUST compile. Error: " + err.Error())
|
log.Fatal("scsusers.Set2faTemplate: Default 2fa template MUST compile. Error: " + err.Error())
|
||||||
}
|
}
|
||||||
c.Templates.Registration = r
|
c.Templates.TwoFA = r
|
||||||
|
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue