I use Authlogic, but now I need to remove all of its traces. What do I need to do?

So I'm going to switch from Authlogic to Devise. Since I only have a few test accounts, I thought it would be better to just delete all of the Authlogic materials and my users table, and then configure Devise. I am using Rails 3. Besides removing authlogic from my gemfile, deleting user and user models / tables, is there anything else I need to do?

+3
source share
2 answers

Hey,

when using the device with all modules, your user table should look like this:

 id                   | integer                     | not null default nextval('contributors_id_seq'::regclass)
 email                | character varying(255)      | not null default ''::character varying
 encrypted_password   | character varying(128)      | not null default ''::character varying
 password_salt        | character varying(255)      | not null default ''::character varying
 confirmation_token   | character varying(255)      | 
 confirmed_at         | timestamp without time zone | 
 confirmation_sent_at | timestamp without time zone | 
 reset_password_token | character varying(255)      | 
 remember_token       | character varying(255)      | 
 remember_created_at  | timestamp without time zone | 
 sign_in_count        | integer                     | default 0
 current_sign_in_at   | timestamp without time zone | 
 last_sign_in_at      | timestamp without time zone | 
 current_sign_in_ip   | character varying(255)      | 
 last_sign_in_ip      | character varying(255)      | 
 failed_attempts      | integer                     | default 0
 unlock_token         | character varying(255)      | 
 locked_at            | timestamp without time zone | 
 created_at           | timestamp without time zone | 
 updated_at           | timestamp without time zone | 

/ .

, encrytor , Authlogic, ...

. http://github.com/plataformatec/devise/blob/master/lib/devise/encryptors/authlogic_sha512.rb

:

config.encryptor = :authlogic_sha512

:).

+2

, , / (-, , !), , . , . , password_salt encrypted_password (, , , ).

+1

Source: https://habr.com/ru/post/1772081/


All Articles