diff options
author | juju2013 <cahterinedesienne@gmail.com> | 2014-04-22 18:55:27 +0200 |
---|---|---|
committer | juju2013 <catherinedesienne@gmail.com> | 2014-04-23 23:07:54 +0200 |
commit | efc05ea1dec5a60c95763fc5158d60b45ef46d8f (patch) | |
tree | c50ebba5664215d010835bbbd7234c0fa50a87d7 /models/user.go | |
parent | dbdaf934e1b8fab06361266268bb55d30b352f37 (diff) | |
download | gitea-efc05ea1dec5a60c95763fc5158d60b45ef46d8f.tar.gz gitea-efc05ea1dec5a60c95763fc5158d60b45ef46d8f.zip |
initial support for LDAP authentication/MSAD
Diffstat (limited to 'models/user.go')
-rw-r--r-- | models/user.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/models/user.go b/models/user.go index ab43df7a1e..df1eb985c2 100644 --- a/models/user.go +++ b/models/user.go @@ -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 } |