Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

extending email confirmation to Authlogic

I recently implemented Authlogic to my project for authentication. I followed http://railscasts.com/episodes/160-authlogic and had it up and running. Wanting to add email confirmation, I found this and followed it: http://github.com/matthooks/authlogic-activation-tutorial

Now, when I try to sign up I get a method missing 'login=' for User model. The example doesn't mention anything about a login method, nor did I have one before.

Here is my user model: http://pastie.org/693910

Any ideas?

like image 519
asdfasdfasdfasdf Avatar asked Jan 23 '23 00:01

asdfasdfasdfasdf


2 Answers

Make sure you have the perishable_token string column in your users database table.

Authlogic needs this column not only for reset_perishable_token! but also for the find_using_perishable_token method

like image 170
caike Avatar answered Jan 26 '23 07:01

caike


Railscasts uses "username"; Matt uses "login".

Change his "login" to "username" and you're done.

like image 21
Grandpa Avatar answered Jan 26 '23 05:01

Grandpa