mirror of
https://github.com/go-gitea/gitea
synced 2025-07-05 01:57:20 +00:00
initial support for LDAP authentication/MSAD
This commit is contained in:
@ -125,6 +125,7 @@ func GetUserSalt() string {
|
||||
|
||||
// RegisterUser creates record of a new user.
|
||||
func RegisterUser(user *User) (*User, error) {
|
||||
|
||||
if !IsLegalName(user.Name) {
|
||||
return nil, ErrUserNameIllegal
|
||||
}
|
||||
|
Reference in New Issue
Block a user