mirror of
https://github.com/miniflux/v2.git
synced 2025-08-11 17:51:01 +00:00
feat: Add option to disable local auth form
This commit is contained in:
parent
59dac15bdf
commit
770cc1dbb3
10 changed files with 68 additions and 11 deletions
|
@ -32,13 +32,14 @@ type funcMap struct {
|
|||
// Map returns a map of template functions that are compiled during template parsing.
|
||||
func (f *funcMap) Map() template.FuncMap {
|
||||
return template.FuncMap{
|
||||
"formatFileSize": formatFileSize,
|
||||
"dict": dict,
|
||||
"hasKey": hasKey,
|
||||
"truncate": truncate,
|
||||
"isEmail": isEmail,
|
||||
"baseURL": config.Opts.BaseURL,
|
||||
"rootURL": config.Opts.RootURL,
|
||||
"formatFileSize": formatFileSize,
|
||||
"dict": dict,
|
||||
"hasKey": hasKey,
|
||||
"truncate": truncate,
|
||||
"isEmail": isEmail,
|
||||
"baseURL": config.Opts.BaseURL,
|
||||
"rootURL": config.Opts.RootURL,
|
||||
"disableLocalAuth": config.Opts.DisableLocalAuth,
|
||||
"hasOAuth2Provider": func(provider string) bool {
|
||||
return config.Opts.OAuth2Provider() == provider
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue