Auth: Hide forgot password if grafana auth is disabled (#79895)
* hide forgot password if grafana auth is disabled * fix test
This commit is contained in:
@@ -551,7 +551,7 @@ type Cfg struct {
|
||||
// AddChangePasswordLink returns if login form is disabled or not since
|
||||
// the same intention can be used to hide both features.
|
||||
func (cfg *Cfg) AddChangePasswordLink() bool {
|
||||
return !cfg.DisableLoginForm
|
||||
return !(cfg.DisableLoginForm || cfg.DisableLogin)
|
||||
}
|
||||
|
||||
type CommandLineArgs struct {
|
||||
|
||||
Reference in New Issue
Block a user