mirror of
https://github.com/cuigh/swirl
synced 2025-06-26 18:16:50 +00:00
Disable changing password for LDAP users
This commit is contained in:
@@ -45,7 +45,12 @@ func profileModifyInfo(ctx web.Context) error {
|
||||
}
|
||||
|
||||
func profilePassword(ctx web.Context) error {
|
||||
m := newModel(ctx)
|
||||
user, err := biz.User.GetByID(ctx.User().ID())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
m := newModel(ctx).Set("User", user)
|
||||
return ctx.Render("profile/password", m)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user