【发布时间】:2020-08-06 20:24:42
【问题描述】:
现在我们有电话号码作为登录名,短信代码(4 位)作为密码。 当用户想登录时:
- user enters phone number
- we generate code
- we save code to user password field
- we send code to user via sms
- user uses this sms code to login in
我们希望能够让最后 3 个生成的代码(密码)对登录有效:
- we started to save generated codes in separate table
问题是:如何将其连接到 authlogic?是否有任何回调关闭默认密码检查并让我能够添加我的自定义密码检查逻辑?
【问题讨论】:
-
我们有 authlogic 3.4.6
标签: ruby-on-rails ruby authentication authlogic