Skip to content

Commit a8a44d0

Browse files
committed
fix
1 parent 16bc2b9 commit a8a44d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/admin/users.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ func EditUserPost(ctx *context.Context, form auth.AdminEditUserForm) {
261261

262262
if u.IsLocal() && len(form.UserName) > 0 && u.Name != form.UserName {
263263
if err := models.ChangeUserName(u, form.UserName); err != nil {
264-
ctx.Handle(500, "ChangeUserName", err)
264+
ctx.InternalServerError(err)
265265
return
266266
}
267267
u.Name = form.UserName

0 commit comments

Comments
 (0)