Created
December 13, 2017 21:30
-
-
Save ethagnawl/c1bdede0cb7adee8d68a5c4cc963d6c3 to your computer and use it in GitHub Desktop.
devise random password generator
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
module Devise | |
def self.generate_password | |
SecureRandom.hex(1).upcase << SecureRandom.hex(DEVISE_PASSWORD_MIN) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment