{"action":"created","issue":{"url":"https://api.github.com/repos/plataformatec/devise/issues/3761","labels_url":"https://api.github.com/repos/plataformatec/devise/issues/3761/labels{/name}","comments_url":"https://api.github.com/repos/plataformatec/devise/issues/3761/comments","events_url":"https://api.github.com/repos/plataformatec/devise/issues/3761/events","html_url":"https://github.com/plataformatec/devise/issues/3761","id":107988752,"number":3761,"title":"Invalid confirmation token","user":{"login":"edipox","id":1580541,"avatar_url":"https://avatars.githubusercontent.com/u/1580541?v=3","gravatar_id":"","url":"https://api.github.com/users/edipox","html_url":"https://github.com/edipox","followers_url":"https://api.github.com/users/edipox/followers","following_url":"https://api.github.com/users/edipox/following{/other_user}","gists_url":"https://api.github.com/users/edipox/gists{/gist_id}","starred_url":"https://api.github.com/users/edipox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edipox/subscriptions","organizations_url":"https://api.github.com/users/edipox/orgs","repos_url":"https://api.github.com/users/edipox/repos","events_url":"https://api.github.com/users/edipox/events{/privacy}","received_events_url":"https://api.github.com/users/edipox/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-23T19:24:11Z","updated_at":"2015-09-23T19:45:05Z","closed_at":"2015-09-23T19:44:37Z","body":"I tried what was exposed in this (https://github.com/plataformatec/devise/wiki/How-To:-Override-confirmations-so-users-can-pick-their-own-passwords-as-part-of-confirmation-activation) wiki page using devise 3.5.2 and rails 4.2.1 in a rails engine, and was always getting 'Invalid token' when trying to confirm an account.\r\n\r\nI don't know if the wiki should be updated or if there is some other issue.\r\n\r\nWhen I replaced\r\n```\r\n    @confirmable = User.find_or_initialize_with_error_by(:confirmation_token, confirmation_token)\r\n```\r\nwith this:\r\n```\r\n    @confirmable = User.find_or_initialize_with_error_by(:confirmation_token, original_token)\r\n```\r\nEverything worked as expected\r\n"},"comment":{"url":"https://api.github.com/repos/plataformatec/devise/issues/comments/142708255","html_url":"https://github.com/plataformatec/devise/issues/3761#issuecomment-142708255","issue_url":"https://api.github.com/repos/plataformatec/devise/issues/3761","id":142708255,"user":{"login":"josevalim","id":9582,"avatar_url":"https://avatars.githubusercontent.com/u/9582?v=3","gravatar_id":"","url":"https://api.github.com/users/josevalim","html_url":"https://github.com/josevalim","followers_url":"https://api.github.com/users/josevalim/followers","following_url":"https://api.github.com/users/josevalim/following{/other_user}","gists_url":"https://api.github.com/users/josevalim/gists{/gist_id}","starred_url":"https://api.github.com/users/josevalim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josevalim/subscriptions","organizations_url":"https://api.github.com/users/josevalim/orgs","repos_url":"https://api.github.com/users/josevalim/repos","events_url":"https://api.github.com/users/josevalim/events{/privacy}","received_events_url":"https://api.github.com/users/josevalim/received_events","type":"User","site_admin":false},"created_at":"2015-09-23T19:45:05Z","updated_at":"2015-09-23T19:45:05Z","body":"In particular, given that you already found the proper solution, it would be awesome if you could just update the wiki. THank you!"}}