{"action":"created","issue":{"url":"https://api.github.com/repos/studiointeract/react-accounts-ui/issues/5","repository_url":"https://api.github.com/repos/studiointeract/react-accounts-ui","labels_url":"https://api.github.com/repos/studiointeract/react-accounts-ui/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/studiointeract/react-accounts-ui/issues/5/comments","events_url":"https://api.github.com/repos/studiointeract/react-accounts-ui/issues/5/events","html_url":"https://github.com/studiointeract/react-accounts-ui/issues/5","id":144620182,"number":5,"title":"How to extend for user profile","user":{"login":"radzom","id":2527976,"avatar_url":"https://avatars.githubusercontent.com/u/2527976?v=3","gravatar_id":"","url":"https://api.github.com/users/radzom","html_url":"https://github.com/radzom","followers_url":"https://api.github.com/users/radzom/followers","following_url":"https://api.github.com/users/radzom/following{/other_user}","gists_url":"https://api.github.com/users/radzom/gists{/gist_id}","starred_url":"https://api.github.com/users/radzom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radzom/subscriptions","organizations_url":"https://api.github.com/users/radzom/orgs","repos_url":"https://api.github.com/users/radzom/repos","events_url":"https://api.github.com/users/radzom/events{/privacy}","received_events_url":"https://api.github.com/users/radzom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-30T14:59:40Z","updated_at":"2016-03-30T15:10:06Z","closed_at":null,"body":"Hi great work you did already.\r\nWhat I am missing is a way to ask user for firstname, lastname, etc... during signup and store these values in his profile.\r\n\r\nI already figured out how to add the appropriate fields in the signup form like this\r\n\r\n```\r\nclass NewLogin extends Accounts.ui.LoginForm {\r\n    fields() {\r\n        const { formState } = this.state;\r\n        if (formState == STATES.SIGN_UP) {\r\n            return { \r\n                firstname: {\r\n                    id: 'firstname',\r\n                    hint: 'Enter firstname',\r\n                    label: 'firstname',\r\n                    onChange: this.handleChange.bind(this, 'firstname')        \r\n                },\r\n                ...super.fields()\r\n            };\r\n        }\r\n        return super.fields();\r\n    }\r\n}\r\n\r\n```\r\nBut i cannot figure out how to get them into the options Object when calling the createUser method in line 451 of the LoginForm\r\n\r\n`Accounts.createUser(options, (error) => {`\r\n\r\nCan you give advice on it if possible at all or add a possibility for it.\r\n\r\nThx in advance"},"comment":{"url":"https://api.github.com/repos/studiointeract/react-accounts-ui/issues/comments/203481641","html_url":"https://github.com/studiointeract/react-accounts-ui/issues/5#issuecomment-203481641","issue_url":"https://api.github.com/repos/studiointeract/react-accounts-ui/issues/5","id":203481641,"user":{"login":"timbrandin","id":1715834,"avatar_url":"https://avatars.githubusercontent.com/u/1715834?v=3","gravatar_id":"","url":"https://api.github.com/users/timbrandin","html_url":"https://github.com/timbrandin","followers_url":"https://api.github.com/users/timbrandin/followers","following_url":"https://api.github.com/users/timbrandin/following{/other_user}","gists_url":"https://api.github.com/users/timbrandin/gists{/gist_id}","starred_url":"https://api.github.com/users/timbrandin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timbrandin/subscriptions","organizations_url":"https://api.github.com/users/timbrandin/orgs","repos_url":"https://api.github.com/users/timbrandin/repos","events_url":"https://api.github.com/users/timbrandin/events{/privacy}","received_events_url":"https://api.github.com/users/timbrandin/received_events","type":"User","site_admin":false},"created_at":"2016-03-30T15:10:06Z","updated_at":"2016-03-30T15:10:06Z","body":"I've have some thoughts about this, the issue in hand is that I'd like this to tie together with a SimpleSchema on the \"users\" collection, but if you have a strong argument for it not to tie together, I might change my mind.\r\n\r\nThough you're almost there with your solution, you probably want to use one of the hooks to set the data on the user correctly, have a look at the **preSignUpHook** in [`accounts_ui.js`](https://github.com/studiointeract/react-accounts-ui/blob/master/imports/accounts_ui.js) – I haven't had time to document all the hooks yet.\r\n\r\nTell me how it goes."}}