{"action":"created","issue":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/1454","labels_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/1454/labels{/name}","comments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/1454/comments","events_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/1454/events","html_url":"https://github.com/RocketChat/Rocket.Chat/issues/1454","id":118194838,"number":1454,"title":"Issue with \"require e-mail verification\"-setting","user":{"login":"k0nsl","id":2517921,"avatar_url":"https://avatars.githubusercontent.com/u/2517921?v=3","gravatar_id":"","url":"https://api.github.com/users/k0nsl","html_url":"https://github.com/k0nsl","followers_url":"https://api.github.com/users/k0nsl/followers","following_url":"https://api.github.com/users/k0nsl/following{/other_user}","gists_url":"https://api.github.com/users/k0nsl/gists{/gist_id}","starred_url":"https://api.github.com/users/k0nsl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k0nsl/subscriptions","organizations_url":"https://api.github.com/users/k0nsl/orgs","repos_url":"https://api.github.com/users/k0nsl/repos","events_url":"https://api.github.com/users/k0nsl/events{/privacy}","received_events_url":"https://api.github.com/users/k0nsl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/labels/type:%20need%20more%20info","name":"type: need more info","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-21T13:08:12Z","updated_at":"2015-12-14T11:55:47Z","closed_at":null,"body":"I've got an instance running with a bunch of already registered users and when I turned on \"e-mail verification\" the other night I ran into issues. The e-mails arrive and all, no problem there. The problem is the following: on an instance which holds already created accounts -- all of whom were created prior to changing the *_\"require e-mail verification\"_*-setting -- results in the following behaviour as reported by several users:\r\n> I was unable to login yesterday... The application was forcing me to do email verification, and it did not work. I would get the email, click the link, and try to sign in, only to be sent back to the email verification step.\r\n\r\nI can confirm this behaviour.\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/28493911-issue-with-require-e-mail-verification-setting?utm_campaign=plugin&utm_content=tracker%2F16890630&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F16890630&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/comments/164419132","html_url":"https://github.com/RocketChat/Rocket.Chat/issues/1454#issuecomment-164419132","issue_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/1454","id":164419132,"user":{"login":"marceloschmidt","id":1986378,"avatar_url":"https://avatars.githubusercontent.com/u/1986378?v=3","gravatar_id":"","url":"https://api.github.com/users/marceloschmidt","html_url":"https://github.com/marceloschmidt","followers_url":"https://api.github.com/users/marceloschmidt/followers","following_url":"https://api.github.com/users/marceloschmidt/following{/other_user}","gists_url":"https://api.github.com/users/marceloschmidt/gists{/gist_id}","starred_url":"https://api.github.com/users/marceloschmidt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marceloschmidt/subscriptions","organizations_url":"https://api.github.com/users/marceloschmidt/orgs","repos_url":"https://api.github.com/users/marceloschmidt/repos","events_url":"https://api.github.com/users/marceloschmidt/events{/privacy}","received_events_url":"https://api.github.com/users/marceloschmidt/received_events","type":"User","site_admin":false},"created_at":"2015-12-14T11:55:47Z","updated_at":"2015-12-14T11:55:47Z","body":"Yes, this is a bug and @geekgonecrazy is right, we should probably automatically verify e-mails for existing users, or at least verify the ones for admin users. For a temporary fix while we don't fix this in our code, please go into your database and set the administrator email as verified. If you're running through meteor run §\r\n`db.users.update({ roles: 'admin' }, {$set: { \"emails.$.verified\": true } }, false, true)`"}}