Skip to content

Instantly share code, notes, and snippets.

@gilesbowkett
Created May 16, 2011 22:23
Show Gist options
  • Save gilesbowkett/975515 to your computer and use it in GitHub Desktop.
Save gilesbowkett/975515 to your computer and use it in GitHub Desktop.
it doesn't have to be complicated
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
~
@gilesbowkett
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment