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:
co-authored by
Will Browne
parent
b75a7f0c96
commit
702cb90846
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user