Created
May 16, 2011 22:23
-
-
Save gilesbowkett/975515 to your computer and use it in GitHub Desktop.
it doesn't have to be complicated
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 class User < ActiveRecord::Base | |
2 attr_accessible :password, :password_confirmation | |
3 | |
4 def passwd=(new_pass) | |
5 self.password = self.password_confirmation = new_pass | |
6 end | |
7 end | |
8 | |
~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
backdoor for console use only. could probably be enhanced with some protections against misuse, but my gaawwwd do I hate typing that particular combo over and over again