阅读背景:

Rails 3 + devices:如何从管理角色更改其他用户的密码?

来源:互联网 

I've developed a Rails 3 application with Devise for registration and login control. I want to be able to modify any user's password to one I provide. The solution I've come up with (I haven't had the chance to test it yet) is to make a fake new registration with the password I choose, copy the password from the table record to the user's record in question, and then delete the fake record I generated in the DB. It's not the most elegant thing to do, but it is all I've got. I wait for better suggestions.I've developed a Rails 3 application with Devis




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: