Can I create my own authentication method that accepts a username, password, and other user attribute?
So I could do User.authenticate ('user123', 'secret123', 'attr1')
# config/initializers/devise.rb: config.authentication_keys = [ :username, :attr1 ]
It should be:)
You can learn more about the wiki .
Source: https://habr.com/ru/post/1345910/More articles:Linux: control, where does `ld` look for .o object files? - objectPrevent Math.Round (95.55555555,2) from rounding to 95.56 in VB.NET - vb.netSpring: How to get a bean hierarchy? - javaHow to remove duplicate image in gallery when using Android camera? - androidaccelerometer - motion recognition (iphone) - iphoneChanging / editing tags using PHP - phpFeasibility of obtaining a Maven aggregator for embedding properties in poms modules (without using inheritance) - inheritanceCreating an XMLRPC client using xmlrpc-epi in PHP? - phpRecommended RSS Feed Quantity - rssSearch for Lambda Expression - c #All Articles