mirror of
https://github.com/miniflux/v2.git
synced 2025-09-15 18:57:04 +00:00
Avoid people to unlink their OAuth2 account without having a local password
This commit is contained in:
parent
f49b42f70f
commit
b166ceaea7
5 changed files with 39 additions and 6 deletions
|
@ -67,6 +67,7 @@ func (c *Controller) UpdateSettings(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
sess.SetLanguage(user.Language)
|
||||
sess.NewFlashMessage(c.translator.GetLanguage(ctx.UserLanguage()).Get("Preferences saved!"))
|
||||
response.Redirect(w, r, route.Path(c.router, "settings"))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue