将电子邮件确认扩展到Authlogic

asd*_*sdf 4 ruby plugins ruby-on-rails authlogic

我最近在我的项目中实现了Authlogic进行身份验证.我关注了http://railscasts.com/episodes/160-authlogic并启动并运行了它.想要添加电子邮件确认,我发现并遵循它:http://github.com/matthooks/authlogic-activation-tutorial

现在,当我尝试注册时,我得到的方法缺少用户模型的'login ='.该示例没有提及有关登录方法的任何内容,也没有提及过.

这是我的用户模型:http://pastie.org/693910

有任何想法吗?

cai*_*ike 6

确保您的users数据库表中有perishable_token字符串列.

Authlogic不仅需要此列,还需要reset_perishable_token!但也适用于find_using_perishable_token方法