Rails 如果登录框是三个字段,Devise 能否做到?

keyboarder · March 29, 2012 · Last by davidqhr replied at April 22, 2012 · 2345 hits

现在的系统用的 devise,不过新的需求来了,登录的时候要求加上一个用户类型,就是三个字段一起来验证,用户类型,用户名,密码。请问 Devise 能否通过扩展做到? wiki 里面没有发现

==> Configuration for any authentication mechanism # Configure which keys are used when authenticating a user. The default is # just :email. You can configure it to use [:username, :subdomain], so for # authenticating a user, both parameters are required.

You need to Sign in before reply, if you don't have an account, please Sign up first.