开发者

authenticate user with devise rails 3 in any controllers

开发者 https://www.devze.com 2023-01-26 08:12 出处:网络
i use rails 3 and devise plu开发者_运维问答gin version 1.1.2. How i can authenticate user through email and password in any controllers? Solved. There is public method sign_in @user, where @user is yo

i use rails 3 and devise plu开发者_运维问答gin version 1.1.2. How i can authenticate user through email and password in any controllers?


Solved. There is public method sign_in @user, where @user is your user object with attr, such as password and email for example

0

精彩评论

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