{"action":"created","issue":{"url":"https://api.github.com/repos/julianlam/nodebb-plugin-session-sharing/issues/6","labels_url":"https://api.github.com/repos/julianlam/nodebb-plugin-session-sharing/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/julianlam/nodebb-plugin-session-sharing/issues/6/comments","events_url":"https://api.github.com/repos/julianlam/nodebb-plugin-session-sharing/issues/6/events","html_url":"https://github.com/julianlam/nodebb-plugin-session-sharing/issues/6","id":129835824,"number":6,"title":"Can you change username / picture upon re-logging in","user":{"login":"Gacnt","id":3466546,"avatar_url":"https://avatars.githubusercontent.com/u/3466546?v=3","gravatar_id":"","url":"https://api.github.com/users/Gacnt","html_url":"https://github.com/Gacnt","followers_url":"https://api.github.com/users/Gacnt/followers","following_url":"https://api.github.com/users/Gacnt/following{/other_user}","gists_url":"https://api.github.com/users/Gacnt/gists{/gist_id}","starred_url":"https://api.github.com/users/Gacnt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gacnt/subscriptions","organizations_url":"https://api.github.com/users/Gacnt/orgs","repos_url":"https://api.github.com/users/Gacnt/repos","events_url":"https://api.github.com/users/Gacnt/events{/privacy}","received_events_url":"https://api.github.com/users/Gacnt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/julianlam/nodebb-plugin-session-sharing/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-29T17:43:34Z","updated_at":"2016-01-30T03:48:19Z","closed_at":null,"body":"I'm using this plugin so people don't have to re-register to use the forums.\r\n\r\nRight now I have code set to set the username and picture dynamically. :\r\n```\r\nlet token = jwt.sign({\r\n           \"id\": parseInt(user.id),\r\n           \"username\": (user.Characters.length === 0) ? user.username : user.Characters[0].character_name,\r\n           \"picture\": (user.Characters.length === 0) ? undefined : \"http://render-api-us.worldofwarcraft.com/static-render/us/\"+ user.Characters[0].character_pic,\r\n           \"email\": user.email\r\n       }, '');\r\n```\r\n\r\nI'm able to successfully login to the forums, but the username and picture doesn't change, it just seems to stay to what I originally had\r\n\r\nI'm using the `master` branch version of NodeBB, is this not how the username or picture field was intended? Not sure what to do about this. \r\n\r\nAlso I noticed, after changing settings in the `shared-session` plugin on the admin panel, the settings don't seem to be there after reloading the page, the secret field is empty, so is the username. I don't know if this is because of me being on mobile doing this, or if it's because of security or something. \r\n\r\nAny feedback would be greatly appreciated thanks. "},"comment":{"url":"https://api.github.com/repos/julianlam/nodebb-plugin-session-sharing/issues/comments/177060182","html_url":"https://github.com/julianlam/nodebb-plugin-session-sharing/issues/6#issuecomment-177060182","issue_url":"https://api.github.com/repos/julianlam/nodebb-plugin-session-sharing/issues/6","id":177060182,"user":{"login":"Gacnt","id":3466546,"avatar_url":"https://avatars.githubusercontent.com/u/3466546?v=3","gravatar_id":"","url":"https://api.github.com/users/Gacnt","html_url":"https://github.com/Gacnt","followers_url":"https://api.github.com/users/Gacnt/followers","following_url":"https://api.github.com/users/Gacnt/following{/other_user}","gists_url":"https://api.github.com/users/Gacnt/gists{/gist_id}","starred_url":"https://api.github.com/users/Gacnt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gacnt/subscriptions","organizations_url":"https://api.github.com/users/Gacnt/orgs","repos_url":"https://api.github.com/users/Gacnt/repos","events_url":"https://api.github.com/users/Gacnt/events{/privacy}","received_events_url":"https://api.github.com/users/Gacnt/received_events","type":"User","site_admin":false},"created_at":"2016-01-30T03:48:19Z","updated_at":"2016-01-30T03:48:19Z","body":"@julianlam I would like to resolve this with #8 "}}