FIX: user fields in invite signups were broken

This commit is contained in:
Régis Hanol 2017-10-04 23:04:24 +02:00
parent cf4e6e2f5b
commit 4771b0a99f
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ export default Ember.Controller.extend(PasswordValidation, UsernameValidation, N
username: this.get('accountUsername'),
name: this.get('accountName'),
password: this.get('accountPassword'),
userCustomFields
user_custom_fields: userCustomFields
}
}).then(result => {
if (result.success) {

View File

@ -31,7 +31,7 @@ class InvitesController < ApplicationController
def perform_accept_invitation
params.require(:id)
params.permit(:username, :name, :password, :user_custom_fields)
params.permit(:username, :name, :password, user_custom_fields: {})
invite = Invite.find_by(invite_key: params[:id])
if invite.present?