Forum: Ruby on Rails encryption error

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Mike C. (Guest)
on 2009-03-16 02:37
(Received via mailing list)
I'm using authlogic. On my local machine everything runs fine, but on
my production server it's giving me an error, telling me that
crypted_password can't be null when I try and create the admin user. I
look at the error and notice that everything that's supposed to be
encrypted or use a generated token is NULL.

Mysql::Error: Column 'crypted_password' cannot be null: INSERT INTO
`users` (`created_at`, `crypted_password`, `role_id`,
`current_login_ip`, `password_salt`, `persistence_token`,
`last_login_ip`, `login`, `email`) VALUES('2009-03-16 00:28:44', NULL,
1, '', NULL, NULL, '', 'admin', 'removed_email_address@domain.invalid')
Mike C. (Guest)
on 2009-03-16 04:02
(Received via mailing list)
Error fixed. I was using restful auth before and switched over to
authlogic, but forgot to remove some code that restful auth put in my
User model.
This topic is locked and can not be replied to.