{"action":"created","issue":{"url":"https://api.github.com/repos/scambra/devise_invitable/issues/544","labels_url":"https://api.github.com/repos/scambra/devise_invitable/issues/544/labels{/name}","comments_url":"https://api.github.com/repos/scambra/devise_invitable/issues/544/comments","events_url":"https://api.github.com/repos/scambra/devise_invitable/issues/544/events","html_url":"https://github.com/scambra/devise_invitable/issues/544","id":64946732,"number":544,"title":"Keep getting an Unauthorized when I try and pass the password for my User","user":{"login":"SupremeA","id":8548647,"avatar_url":"https://avatars.githubusercontent.com/u/8548647?v=3","gravatar_id":"","url":"https://api.github.com/users/SupremeA","html_url":"https://github.com/SupremeA","followers_url":"https://api.github.com/users/SupremeA/followers","following_url":"https://api.github.com/users/SupremeA/following{/other_user}","gists_url":"https://api.github.com/users/SupremeA/gists{/gist_id}","starred_url":"https://api.github.com/users/SupremeA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SupremeA/subscriptions","organizations_url":"https://api.github.com/users/SupremeA/orgs","repos_url":"https://api.github.com/users/SupremeA/repos","events_url":"https://api.github.com/users/SupremeA/events{/privacy}","received_events_url":"https://api.github.com/users/SupremeA/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-03-28T14:18:55Z","updated_at":"2015-03-31T13:44:48Z","closed_at":"2015-03-30T07:39:07Z","body":"I am having an issue where I get the invitation to work and the User can accept it but when the user submits his pasword and confirms name it should login but instead I get an Unauthorized. Here is my log.\r\n\r\n    Started POST \"/tenants/invitation\" for 10.0.2.2 at 2015-03-28 06:58:02 +0000\r\n    Processing by Tenants::InvitationsController#create as HTML\r\n      Parameters: {\"utf8\"=>\"✓\",     \"authenticity_token\"=>\"AmwHWp2u1ZFm83mgurx6BGD8LrSJzYoKCD5fBgyTKjk=\", \"tenant\"=>    {\"invitation_token\"=>\"uC9LwXz4KB_B_b7MxvnB\", \"password\"=>\"[FILTERED]\",     \"password_confirmation\"=>\"[FILTERED]\", \"first_name\"=>\"John\", \"last_name\"=>\"Smith\",     \"ten_phone\"=>\"3332221212\"}, \"commit\"=>\"Complete Account Setup\"}\r\n    Completed 401 Unauthorized in 1ms\r\n\r\nI am not sure where I am missing authorization in my application_controller I have the following:\r\n\r\n      def configure_permitted_parameters\r\n        devise_parameter_sanitizer.for(:sign_in) { |u| u.permit(:first_name, :last_name, :avatar,  :avatar_cache, :zipcode, :company, :number_tenants, :man_phone, :ten_phone, :tenant_phone, :manager_phone) }\r\n        devise_parameter_sanitizer.for(:account_update) { |u| u.permit(:first_name, :last_name,  :zipcode, :company, :password, :password_confirmation, :email :man_phone, :ten_phone, :manager_phone) }\r\n        devise_parameter_sanitizer.for(:sign_up) { |u| u.permit(:first_name, :last_name, :name, :email, :password, :password_confirmation, :avatar, :company, :ten_phone, :tenant_phone) }\r\n        devise_parameter_sanitizer.for(:accept_invitation).concat [:invitation_token, :password, :password_confirmation, :first_name, :last_name, :ten_phone, :zipcode, :state, :current_streetname, :current_city]\r\n        devise_parameter_sanitizer.for(:accept_invitation) do |u|\r\n          u.permit(:first_name, :last_name, :ten_phone, :password, :password_confirmation,\r\n               :invitation_token)\r\n        end\r\n\r\nUnsure of anywhere else I need to authorize, here is the form for password:\r\n     <%= form_for resource, :as => resource_name, :url => invitation_path(resource_name), :html => { :method => :post } do |f| %>\r\n\r\nOne last thing, I can see the user/tenant in my console:\r\n\r\n     => #<Tenant _id: 5516442f7261693861100000, avatar: nil, invited_by_type: \"Manager\", invited_by_id: BSON::ObjectId('551643f772616955930a0000'), email: \"sample@gmail.com\", encrypted_password: \"\", first_name: \"John\", last_name: \"Smith\", zipcode: nil, ten_phone: \"3332221212\", invitation_token: \"8e6a6a704de9eb05b1370799fbd3880ad743ec5e3383c6e97b66d20d449ae884\", invitation_created_at: 2015-03-28 06:03:27 UTC, invitation_sent_at: nil, invitation_accepted_at: nil, invitation_limit: nil, reset_password_token: nil, reset_password_sent_at: nil, remember_created_at: nil, sign_in_count: 0, current_sign_in_at: nil, last_sign_in_at: nil, current_sign_in_ip: nil, last_sign_in_ip: nil, confirmation_token: nil, confirmed_at: nil, confirmation_sent_at: nil, unconfirmed_email: nil> \r\n"},"comment":{"url":"https://api.github.com/repos/scambra/devise_invitable/issues/comments/88089979","html_url":"https://github.com/scambra/devise_invitable/issues/544#issuecomment-88089979","issue_url":"https://api.github.com/repos/scambra/devise_invitable/issues/544","id":88089979,"user":{"login":"SupremeA","id":8548647,"avatar_url":"https://avatars.githubusercontent.com/u/8548647?v=3","gravatar_id":"","url":"https://api.github.com/users/SupremeA","html_url":"https://github.com/SupremeA","followers_url":"https://api.github.com/users/SupremeA/followers","following_url":"https://api.github.com/users/SupremeA/following{/other_user}","gists_url":"https://api.github.com/users/SupremeA/gists{/gist_id}","starred_url":"https://api.github.com/users/SupremeA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SupremeA/subscriptions","organizations_url":"https://api.github.com/users/SupremeA/orgs","repos_url":"https://api.github.com/users/SupremeA/repos","events_url":"https://api.github.com/users/SupremeA/events{/privacy}","received_events_url":"https://api.github.com/users/SupremeA/received_events","type":"User","site_admin":false},"created_at":"2015-03-31T13:44:48Z","updated_at":"2015-03-31T13:44:48Z","body":"Ok removed edit & update but it did the same thing, did not pass the password and went from edit page to update page. here is the log when clicking the link...\r\n\r\n    Started GET \"/tenants/invitation/accept?invitation_token=7m3T4ScqKruiV1bLgJSz\" for 10.0.2.2 at 2015-03-31 13:36:27 +0000\r\n    Processing by Tenants::InvitationsController#edit as HTML\r\n      Parameters: {\"invitation_token\"=>\"7m3T4ScqKruiV1bLgJSz\"}\r\n    D, [2015-03-31T13:36:27.824312 #20546] DEBUG -- :   MOPED: 127.0.0.1:27017 QUERY        database=lease_defend_development collection=tenants selector={\"$query\"=>{\"invitation_token\"=>\"abfe74672d01572500f57542c05e7d5b27c575a236130be9deaf294b1b30fd24\"}, \"$orderby\"=>{:_id=>1}} flags=[] limit=-1 skip=0 batch_size=nil fields=nil runtime: 0.6017ms\r\n      Rendered tenants/invitations/_password_step.html.erb (1.9ms)\r\n      Rendered tenants/invitations/_confirm_name_step.html.erb (1.6ms)\r\n      Rendered tenants/invitations/edit.html.erb within layouts/application (47.7ms)\r\n    Completed 200 OK in 269ms (Views: 265.4ms)\r\n\r\nHere is the log after inputing the password...\r\n\r\n    Started PUT \"/tenants/invitation\" for 10.0.2.2 at 2015-03-31 13:36:54 +0000\r\n    Processing by Tenants::InvitationsController#update as HTML\r\n      Parameters: {\"utf8\"=>\"✓\",  \"authenticity_token\"=>\"k+P8CfkT+ywcLPhplxI5Tlr4dhaawdEvTaZF9QqUlj8=\", \"tenant\"=>{\"invitation_token\"=>\"7m3T4ScqKruiV1bLgJSz\", \"password\"=>\"[FILTERED]\", \"password_confirmation\"=>\"[FILTERED]\", \"first_name\"=>\"Aisha\", \"last_name\"=>\"ThinsMeGotIt\", \"ten_phone\"=>\"3271282387\"}, \"commit\"=>\"Complete Account Setup\"}\r\n      Rendered tenants/invitations/update.html.erb within layouts/application (0.1ms)\r\n    Completed 200 OK in 225ms (Views: 224.3ms)"}}