开发者

how to use either email or login in Authlogic

开发者 https://www.devze.com 2022-12-22 09:42 出处:网络
I\'m using Authlogic with my Ruby on Rails App. I would like user to enter either user name or password in one field to authenticate. How do I do this with Authlogic?

I'm using Authlogic with my Ruby on Rails App. I would like user to enter either user name or password in one field to authenticate. How do I do this with Authlogic?

I know I can switch to usin开发者_如何学运维g email:

  acts_as_authentic do |c|
    c.login_field = :email
  end

I was sure if I can tell Authlogic to use either.

Cheers,

Tam


Check this.

0

精彩评论

暂无评论...
验证码 换一张
取 消