mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	fix 500 error while use a reserved name in org rename (#17878)
fix #17876 Signed-off-by: a1012112796 <1012112796@qq.com>
This commit is contained in:
		@@ -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"`
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user