summaryrefslogtreecommitdiffstats
path: root/models/user
diff options
context:
space:
mode:
authora1012112796 <1012112796@qq.com>2021-12-02 10:43:43 +0800
committerGitHub <noreply@github.com>2021-12-02 10:43:43 +0800
commitba57e30f13906ad7104da7892dc3dc79721ed2fe (patch)
tree9012da10224b8893f3798eae11fa1df8acc13906 /models/user
parent7026a30fdcae2c9e9d4640e96d5074e948361d5e (diff)
downloadgitea-ba57e30f13906ad7104da7892dc3dc79721ed2fe.tar.gz
gitea-ba57e30f13906ad7104da7892dc3dc79721ed2fe.zip
fix 500 error while use a reserved name in org rename (#17878)
fix #17876 Signed-off-by: a1012112796 <1012112796@qq.com>
Diffstat (limited to 'models/user')
-rw-r--r--models/user/user.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/models/user/user.go b/models/user/user.go
index 62f2aa472d..80ddcdba37 100644
--- a/models/user/user.go
+++ b/models/user/user.go
@@ -10,7 +10,6 @@ import (
"crypto/sha256"
"crypto/subtle"
"encoding/hex"
- "errors"
"fmt"
"net/url"
"os"
@@ -73,11 +72,6 @@ const (
EmailNotificationsDisabled = "disabled"
)
-var (
- // ErrUserNameIllegal user name contains illegal characters error
- ErrUserNameIllegal = errors.New("User name contains illegal characters")
-)
-
// User represents the object of individual and member of organization.
type User struct {
ID int64 `xorm:"pk autoincr"`