Disable the logout method for authentication methods other than 'json' (currently 'proxy' and 'none'.)

This commit is contained in:
Ovidiu Predescu 2019-12-03 17:31:11 -08:00
parent 118071ba4b
commit b42b09ccbe
3 changed files with 7 additions and 3 deletions

View file

@ -34,6 +34,7 @@ func handleWithStaticData(w http.ResponseWriter, r *http.Request, d *data, box *
"StaticURL": staticURL,
"Signup": d.settings.Signup,
"NoAuth": d.settings.AuthMethod == auth.MethodNoAuth,
"AuthMethod": d.settings.AuthMethod,
"LoginPage": auther.LoginPage(),
"CSS": false,
"ReCaptcha": false,