Fixed spinach and tests. Build should pass now
This commit is contained in:
parent
0e1635a68a
commit
0693215c30
5 changed files with 23 additions and 17 deletions
|
@ -38,7 +38,7 @@ module Gitlab
|
|||
# POST /users
|
||||
post do
|
||||
authenticated_as_admin!
|
||||
attrs = attributes_for_keys [:email, :name, :password, :skype, :linkedin, :twitter, :projects_limit]
|
||||
attrs = attributes_for_keys [:email, :name, :password, :skype, :linkedin, :twitter, :projects_limit, :username]
|
||||
user = User.new attrs, as: :admin
|
||||
if user.save
|
||||
present user, with: Entities::User
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue