lib/rhoconnect/api/user/create_user.rb in rhoconnect-3.4.5 vs lib/rhoconnect/api/user/create_user.rb in rhoconnect-4.0.0.beta.10

- old
+ new

@@ -1,7 +1,7 @@ -Server.api4 :create_user, :post, "/rc/#{Rhoconnect::API_VERSION}/users", true, {:verb => :post, :url => ['/api/create_user', '/api/user/create_user']} do |params,user| - app = App.load(APP_NAME) - u = User.create({:login => params[:attributes]['login']}) - u.password = params[:attributes]['password'] - app.users << u.login - "User created" -end +# Server.api4 :create_user, :post, "/rc/#{Rhoconnect::API_VERSION}/users", true, {:verb => :post, :url => ['/api/create_user', '/api/user/create_user']} do |params,user| +# app = App.load(APP_NAME) +# u = User.create({:login => params[:attributes]['login']}) +# u.password = params[:attributes]['password'] +# app.users << u.login +# "User created" +# end