Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

activeadmin admin account cant access

I tried rake db:reset and now I can;t access it the [email protected]|password it returns a invalid user/password when im logging in. I checked my database it's in there why is that so?

id          email              encrypted_password                                            reset_password_token  reset_password_sent_at  remember_created_at         sign_in_count  current_sign_in_at          last_sign_in_at             current_sign_in_ip  last_sign_in_ip  created_at                  updated_at                
----------  -----------------  ------------------------------------------------------------  --------------------  ----------------------  --------------------------  -------------  --------------------------  --------------------------  ------------------  ---------------  --------------------------  --------------------------
1           [email protected]  $2a$10$cCUYBOKQHAZhpYgdLIZIWuQArkrsjpgIMu9/kk17127Oj.DKYwVxa                                                2012-04-19 15:23:02.857402  36             2012-04-25 02:37:36.689711  2012-04-25 02:31:55.088037  127.0.0.1           127.0.0.1        2012-03-09 16:23:58.779104  2012-04-25 02:37:36.692613
sqlite> 
like image 726
Led Avatar asked Dec 02 '22 00:12

Led


1 Answers

do

$ rails console
>> AdminUser.create :email => '[email protected]', :password => 'password', :password_confirmation => 'password'
like image 142
Victor Pudeyev Avatar answered Dec 06 '22 17:12

Victor Pudeyev