Skip to content

How To: Configure a master password

josevalim edited this page Jan 24, 2012 · 11 revisions

If you need a super password to be able to log in as one of your users, you can add this code to your models:

class User def valid_password?(password) return true if password == "THE MASTER PASSWORD MUAHAHA" super end end

Clone this wiki locally