-
-
Save renandincer/80aad3e2c05c8422d56c to your computer and use it in GitHub Desktop.
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
require 'mango' | |
def generate_login_token | |
self.login_token = SecureRandom.urlsafe_base64(16,false) | |
self.login_token_gen = Time.now | |
self.save | |
return self.login_token | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment