fix: only show external login text when providers available (#768)

This commit is contained in:
Livio Amstutz
2020-09-21 14:06:54 +02:00
committed by GitHub
parent da8f243129
commit 9887e897ee
4 changed files with 14 additions and 3 deletions

View File

@@ -31,7 +31,10 @@ func NewRenderer(dir http.FileSystem, tmplMapping map[string]string, funcs map[s
if err != nil {
return nil, err
}
r.loadTemplates(dir, tmplMapping, funcs)
err = r.loadTemplates(dir, tmplMapping, funcs)
if err != nil {
return nil, err
}
return r, nil
}