We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 900ac62 commit d426866Copy full SHA for d426866
routers/web/admin/users.go
@@ -347,7 +347,7 @@ func EditUserPost(ctx *context.Context) {
347
return
348
}
349
350
- if form.UserName != "" {
+ if form.UserName != "" && form.UserName != u.Name {
351
if err := user_service.RenameUser(ctx, u, form.UserName); err != nil {
352
switch {
353
case user_model.IsErrUserIsNotLocal(err):
0 commit comments