has_secure_token
has_secure_token copied to clipboard
Create uniques random tokens for any model in ruby on rails. Backport of ActiveRecord::SecureToken 5 to AR 3.x and 4.x
Results
2
has_secure_token issues
Sort by
recently updated
recently updated
newest added
I've yet to check what upstream is doing, but would a before_validation hook be more appropriate than a before_create hook? Currently things like `validates_presence_of :token` don't work.
In my model I need to have an email confirmation token and a reset password token. Having the email confirmation token generated on creation is fine, but having it generated...