make it possible to hide change password link in profile menu (#29246)

Co-authored-by: Will Browne <wbrowne@users.noreply.github.com>
This commit is contained in:
Carl Bergquist
2020-11-20 17:01:10 +01:00
committed by GitHub
co-authored by Will Browne
parent b75a7f0c96
commit 702cb90846
2 changed files with 12 additions and 2 deletions
+6
View File
@@ -207,6 +207,12 @@ var (
ImageUploadProvider string
)
// AddChangePasswordLink returns if login form is disabled or not since
// the same intention can be used to hide both features.
func AddChangePasswordLink() bool {
return !DisableLoginForm
}
// TODO move all global vars to this struct
type Cfg struct {
Raw *ini.File