make CREATE USER default to IF NOT EXISTS

pull/6010/head
David Norton 2016-03-14 17:44:48 -04:00
parent ba6a95e9bc
commit aede1b7478
1 changed files with 1 additions and 1 deletions

View File

@ -460,7 +460,7 @@ func (data *Data) CreateUser(name, hash string, admin bool) error {
if name == "" {
return ErrUsernameRequired
} else if data.User(name) != nil {
return ErrUserExists
return nil
}
// Append new user.