ってAuthlogicが必要とするすべての痕跡です。になるのか?
-
27-09-2019 - |
質問
さんのへの切り替えAuthlogic工夫.私だけのカップルテストアカウントと思いしているだけですべて削除し、Authlogicっと私のユーザーにテーブル、その設定を工夫.を使用していレール3.ほかに除去authlogicからgemfile取り除き、ユーザー user_sessionモデル/テーブル、何か他のものはありましたね。
解決
よ、
すべてのモジュールでdeviseを使用する場合、ユーザーテーブルは次のようになります。
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 |
列を追加/変更するには、移行を記述する必要があります。
素晴らしいことは、既存のすべてのユーザーをスムーズに移行できるように、default encrytorをauthlogicが使用するエンクリートに変更できることです...
見る :http://github.com/plataformatec/devise/blob/master/lib/devise/encryptors/authlogic_sha512.rb
Devise Initializerで暗号化装置を変更できます。
config.encryptor = :authlogic_sha512
それはすべてであるべきです:)。
他のヒント
ありと、たいへんこされることがありますのでご注意する必要はない落と削除、ユーザーにテーブル(いまえにくい生産を明らかに!), での利用移行を追加し、上記分野変更のencrypterとして必要なすべきである。のpassword_saltとencrypted_password分野の名称を正しく使用への移行の名前を変更している可能性ができそして電子メールと電話によってどこかにかかったの探しています)。
所属していません StackOverflow