I need a button that takes login for certain user without entering the password. This will be done by admin.
How can I do this? Or devise.token_authenticatable is the only normal solution?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could use
token_authenticatable, but there are also helper methods calledsign_inandsign_out. By givingsign_ina user object this user is being signed in.