Backend: Adds route for well-known change password URL (#28788)
* Backend: Adds route for well-known change password URL * Include 'dashboard/new' in backend routes * Move index route handler registration out of "not logged in views" section Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
co-authored by
Arve Knudsen
parent
27ea268f80
commit
b2dcf06b60
@@ -250,6 +250,11 @@ func ChangeUserPassword(c *models.ReqContext, cmd models.ChangeUserPasswordComma
|
||||
return Success("User password changed")
|
||||
}
|
||||
|
||||
// redirectToChangePassword handles GET /.well-known/change-password.
|
||||
func redirectToChangePassword(c *models.ReqContext) {
|
||||
c.Redirect("/profile/password", 302)
|
||||
}
|
||||
|
||||
// GET /api/users
|
||||
func SearchUsers(c *models.ReqContext) Response {
|
||||
query, err := searchUser(c)
|
||||
|
||||
Reference in New Issue
Block a user