Permalink
Browse files

Merge "Fixed the method call to create a user in the UAA"

  • Loading branch information...
2 parents 4cb171b + b057a97 commit 31ab65cdf0b9863677675b3812aac7305001267e @joeldsa joeldsa committed with Gerrit Code Review Nov 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 cloud_controller/app/controllers/users_controller.rb
@@ -14,7 +14,7 @@ def create
retry_on_error = (retry_on_error == true ? false : true)
email = body_params[:email]
password = body_params[:password]
- user = user_account.add({userName: email, password: password, name: {givenName: email, familyName: email}})
+ user = user_account.add({userName: email, emails: [{value: email}], password: password, name: {givenName: email, familyName: email}})
CloudController.logger.info("User with email #{email} and id #{user[:id]} created in the UAA") unless user == nil
rescue CF::UAA::InvalidToken => ite
# Try again. The UAA may have restarted and may have lost it's token cache

0 comments on commit 31ab65c

Please sign in to comment.