1
0
Fork 0
forked from forgejo/forgejo

initial support for LDAP authentication/MSAD

This commit is contained in:
juju2013 2014-04-22 18:55:27 +02:00 committed by juju2013
parent dbdaf934e1
commit efc05ea1de
7 changed files with 216 additions and 8 deletions

View file

@ -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
}