{"action":"closed","issue":{"url":"https://api.github.com/repos/d8-contrib-modules/password_policy/issues/50","labels_url":"https://api.github.com/repos/d8-contrib-modules/password_policy/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/d8-contrib-modules/password_policy/issues/50/comments","events_url":"https://api.github.com/repos/d8-contrib-modules/password_policy/issues/50/events","html_url":"https://github.com/d8-contrib-modules/password_policy/issues/50","id":102062908,"number":50,"title":"Enforce policy when user gains role","user":{"login":"CashWilliams","id":613573,"avatar_url":"https://avatars.githubusercontent.com/u/613573?v=3","gravatar_id":"","url":"https://api.github.com/users/CashWilliams","html_url":"https://github.com/CashWilliams","followers_url":"https://api.github.com/users/CashWilliams/followers","following_url":"https://api.github.com/users/CashWilliams/following{/other_user}","gists_url":"https://api.github.com/users/CashWilliams/gists{/gist_id}","starred_url":"https://api.github.com/users/CashWilliams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CashWilliams/subscriptions","organizations_url":"https://api.github.com/users/CashWilliams/orgs","repos_url":"https://api.github.com/users/CashWilliams/repos","events_url":"https://api.github.com/users/CashWilliams/events{/privacy}","received_events_url":"https://api.github.com/users/CashWilliams/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"nagwani","id":434983,"avatar_url":"https://avatars.githubusercontent.com/u/434983?v=3","gravatar_id":"","url":"https://api.github.com/users/nagwani","html_url":"https://github.com/nagwani","followers_url":"https://api.github.com/users/nagwani/followers","following_url":"https://api.github.com/users/nagwani/following{/other_user}","gists_url":"https://api.github.com/users/nagwani/gists{/gist_id}","starred_url":"https://api.github.com/users/nagwani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nagwani/subscriptions","organizations_url":"https://api.github.com/users/nagwani/orgs","repos_url":"https://api.github.com/users/nagwani/repos","events_url":"https://api.github.com/users/nagwani/events{/privacy}","received_events_url":"https://api.github.com/users/nagwani/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-08-20T05:04:05Z","updated_at":"2015-09-04T13:06:18Z","closed_at":"2015-09-04T13:06:18Z","body":"### Steps:\r\n\r\n- Create a password policy and enable for 'Administrator' role\r\n- Create a test user with no roles, which has password that fails the policy 'password'\r\n- Edit the test user and add the 'Administrator' role\r\n\r\n### Expected:\r\n\r\nAn error or message would be displayed when adding the role that states the user's password does not meet requirements.\r\n\r\nNeed to discuss options for what should happen. \r\n\r\n*Options:*\r\n\r\n- Password is marked for force reset\r\n- User is not saved with form error\r\n- (other ideas?)\r\n\r\n### Actual:\r\n\r\nThe user is saved and can login with the poor password into what should now be a policy enforced role."}}