{"action":"opened","issue":{"url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/issues/2254","repository_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork","labels_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/issues/2254/labels{/name}","comments_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/issues/2254/comments","events_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/issues/2254/events","html_url":"https://github.com/openfoodfoundation/openfoodnetwork/issues/2254","id":318271533,"number":2254,"title":"Error facing new users who've been invited to manager an enterprise - 'password reset token has expired'","user":{"login":"sstead","id":10843056,"avatar_url":"https://avatars3.githubusercontent.com/u/10843056?v=4","gravatar_id":"","url":"https://api.github.com/users/sstead","html_url":"https://github.com/sstead","followers_url":"https://api.github.com/users/sstead/followers","following_url":"https://api.github.com/users/sstead/following{/other_user}","gists_url":"https://api.github.com/users/sstead/gists{/gist_id}","starred_url":"https://api.github.com/users/sstead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sstead/subscriptions","organizations_url":"https://api.github.com/users/sstead/orgs","repos_url":"https://api.github.com/users/sstead/repos","events_url":"https://api.github.com/users/sstead/events{/privacy}","received_events_url":"https://api.github.com/users/sstead/received_events","type":"User","site_admin":false},"labels":[{"id":782472172,"url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/labels/bug-s2","name":"bug-s2","color":"ff6400","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-27T04:09:34Z","updated_at":"2018-04-27T04:09:34Z","closed_at":null,"author_association":"NONE","body":"## Description\r\nNew users who have been invited to help manage an account (via the new Add New User as a Manager button) are redirected to a 'set your password' page when they confirm their email. This is correct functionality (the users have never set a password), but unfortunately when the new user types in a password and saves it they get the 'password reset token has expired' error message. The good thing is that the user has confirmed their account, so they'll be able to ask for a 'reset password' email (PR2238 prevents unconfirmed users from resetting passwords), however it's still confusing for new users- they have to work out where to go to resent a confirmation link.\r\n\r\nThis bug was found while testing https://github.com/openfoodfoundation/openfoodnetwork/pull/2220\r\n\r\n## Expected Behavior\r\nWhen the new user is take to the page where they create a password they should be able to set a password and then be logged in.\r\n\r\n## Actual Behavior\r\nThe page won't let them set a password and they can't login. They need to navigate theselves to reset password in order to create a password.\r\n\r\n## Steps to Reproduce\r\n1. Login with an enterprise owner. \r\n2. Go to Enterprise Setting > Users and 'Add and unregistered user'\r\n3. Next go to the email of the invited manager, and click the confirmation link.\r\n4. You'll be redirected to a page to create a pw. Enter a valid pw. click save.- error appears\r\n\r\n## Animated Gif/Screenshot\r\n![image](https://user-images.githubusercontent.com/10843056/39344215-6ae6bc58-4a24-11e8-8979-79081150594d.png)\r\n\r\n\r\n## Context\r\nWe've just released this new mechanism for inviting new managers - but it has a fairly confusing bug in it, that all users of the feature will run into.\r\n\r\n## Severity\r\ns2\r\n\r\n## Your Environment\r\n* Chrome and Firefox\r\n* PC, laptop\r\n\r\n## Possible Fix\r\nMake the 'create password' form work without errors.\r\n"}}
{"actor":{"display_login":"sstead"}}