{"action":"created","issue":{"url":"https://api.github.com/repos/activeadmin/activeadmin/issues/4286","labels_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/4286/labels{/name}","comments_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/4286/comments","events_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/4286/events","html_url":"https://github.com/activeadmin/activeadmin/issues/4286","id":128595255,"number":4286,"title":"Default admin users/passwords will not work (new)","user":{"login":"TeamRainless","id":3449975,"avatar_url":"https://avatars.githubusercontent.com/u/3449975?v=3","gravatar_id":"","url":"https://api.github.com/users/TeamRainless","html_url":"https://github.com/TeamRainless","followers_url":"https://api.github.com/users/TeamRainless/followers","following_url":"https://api.github.com/users/TeamRainless/following{/other_user}","gists_url":"https://api.github.com/users/TeamRainless/gists{/gist_id}","starred_url":"https://api.github.com/users/TeamRainless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeamRainless/subscriptions","organizations_url":"https://api.github.com/users/TeamRainless/orgs","repos_url":"https://api.github.com/users/TeamRainless/repos","events_url":"https://api.github.com/users/TeamRainless/events{/privacy}","received_events_url":"https://api.github.com/users/TeamRainless/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-01-25T17:35:32Z","updated_at":"2016-01-25T21:11:41Z","closed_at":null,"body":"Hey. I've been running activeadmin for years on my old app, but I'm just creating a new rails 4.2 app from scratch and I've installed activeadmin, and migrated and seeded the database... but it simply won't let me login (gives me the \"invalid password\" thing).\r\n\r\nBelow is the complete error:\r\n\r\n    Processing by ActiveAdmin::Devise::SessionsController#create as HTML\r\n      Parameters: {\"utf8\"=>\"✓\", \"authenticity_token\"=>\"edCCf/+TsRq7AVXY8/xMW9ytFvb/9Rk1wNte3EC9CMvrPAuiLdEtzePXlsZ+QV1Md2jbcKFgojg72uLtya996g==\", \"user\"=>{\"email\"=>\"admin@example.com\", \"password\"=>\"[FILTERED]\", \"remember_me\"=>\"0\"}, \"commit\"=>\"Login\"}\r\n      User Load (0.8ms)  SELECT  \"users\".* FROM \"users\" WHERE \"users\".\"email\" = $1  ORDER BY \"users\".\"id\" ASC LIMIT 1  [[\"email\", \"admin@example.com\"]]\r\n    Completed 401 Unauthorized in 10ms (ActiveRecord: 1.0ms)\r\n\r\nAnd in the off chance you want to see the rest:\r\n\r\n    Processing by ActiveAdmin::Devise::SessionsController#new as HTML\r\n      Parameters: {\"utf8\"=>\"✓\", \"authenticity_token\"=>\"edCCf/+TsRq7AVXY8/xMW9ytFvb/9Rk1wNte3EC9CMvrPAuiLdEtzePXlsZ+QV1Md2jbcKFgojg72uLtya996g==\", \"user\"=>{\"email\"=>\"admin@example.com\", \"password\"=>\"[FILTERED]\", \"remember_me\"=>\"0\"}, \"commit\"=>\"Login\"}\r\n      Rendered /Users/rainless/.rvm/gems/ruby-2.2.1/bundler/gems/activeadmin-557d143e8a48/app/views/active_admin/devise/shared/_links.erb (2.2ms)\r\n      Rendered /Users/rainless/.rvm/gems/ruby-2.2.1/bundler/gems/activeadmin-557d143e8a48/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (23.9ms)\r\n    Completed 200 OK in 194ms (Views: 119.7ms | ActiveRecord: 0.0ms)\r\n\r\nThe user exists, I can only imagine that the password is, in fact, \"password\"... but just in case I also created my own admin user and couldn't login with that either.  I even went so far as to make a user controller:\r\n\r\n    class UsersController < ApplicationController\r\n      def create\r\n        User.create(user_params)\r\n      end\r\n    \r\n      def user_params\r\n        params,require(:user).permit(:email, :password, :password_remember, :id)\r\n      end\r\n    end\r\n\r\n...to specifically allow email and password and id and everything else... no avail.\r\n\r\nAlso did everything this guy did:\r\n\r\nhttp://stackoverflow.com/questions/25498878/cant-login-to-activeadmin\r\n\r\nAbsolutely nothing has helped.\r\n\r\nRails version is 4.2.5\r\n\r\nActiveAdmin is: activeadmin (1.0.0.pre2 557d143)\r\nDevise is: devise (3.5.5)\r\n\r\nPlease help"},"comment":{"url":"https://api.github.com/repos/activeadmin/activeadmin/issues/comments/174664397","html_url":"https://github.com/activeadmin/activeadmin/issues/4286#issuecomment-174664397","issue_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/4286","id":174664397,"user":{"login":"TeamRainless","id":3449975,"avatar_url":"https://avatars.githubusercontent.com/u/3449975?v=3","gravatar_id":"","url":"https://api.github.com/users/TeamRainless","html_url":"https://github.com/TeamRainless","followers_url":"https://api.github.com/users/TeamRainless/followers","following_url":"https://api.github.com/users/TeamRainless/following{/other_user}","gists_url":"https://api.github.com/users/TeamRainless/gists{/gist_id}","starred_url":"https://api.github.com/users/TeamRainless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeamRainless/subscriptions","organizations_url":"https://api.github.com/users/TeamRainless/orgs","repos_url":"https://api.github.com/users/TeamRainless/repos","events_url":"https://api.github.com/users/TeamRainless/events{/privacy}","received_events_url":"https://api.github.com/users/TeamRainless/received_events","type":"User","site_admin":false},"created_at":"2016-01-25T21:11:41Z","updated_at":"2016-01-25T21:11:41Z","body":"You see... this is the problem... You aren't actually listening:\r\n\r\nWAAAY up at the top of my issue posting I mention that I *did* seed the database. The problem is that this:\r\n\r\nAfter installing the gem, you need to run the generator. By default we use Devise, and the generator creates an AdminUser model. If you want to create a different model (or modify an existing one for use with Devise) you can pass it as an argument. If you want to skip Devise configuration entirely, you can pass --skip-users.\r\n\r\nrails g active_admin:install              # creates the AdminUser class\r\nrails g active_admin:install User         # creates / edits the class for use with Devise\r\nrails g active_admin:install --skip-users # skips Devise install\r\n--------------------------------------------------------\r\n\r\n...entire part of the Readme is poorly-written and leads to confusion. (Don't take my word for it. Google: \"ActiveAdmin invalid password\". People keep having this same problem.)\r\n\r\nIf you do:\r\nrails g active_admin:install and then rake db:seed\r\n\r\nThen active admin will create an AdminUser.\r\n\r\nBut if you do:\r\nrails g active_admin:install User and then rake db:seed\r\n\r\nThen activeadmin will NOT create the user that you need to login. That's the problem.\r\n\r\nSo then you continue to follow the instructions and you get to localhost:3000/admin and... you can't log in.\r\n\r\nThe wording... is off.  To put it nicely."}}