Permalink
Browse files

Fixed the method call to create a user in the UAA

Change-Id: Ie241fd92ce7a29f75edc2f837fb6de4d1a706113
  • Loading branch information...
1 parent 5a6bd42 commit b057a97198a1493ae8f49c6684438198ee8ddd9d @joeldsa joeldsa committed 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 b057a97

Please sign in to comment.