Skip to content

Commit

Permalink
Merge pull request Sorcery#19 from kyuden/use_urlsafe_base64
Browse files Browse the repository at this point in the history
Use urlsafe_base64 for url sensitive chars
  • Loading branch information
joshbuker authored Dec 5, 2016
2 parents 24b92b4 + 428534c commit ef20641
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sorcery/model/temporary_token.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def self.included(base)

# Random code, used for salt and temporary tokens.
def self.generate_random_token
SecureRandom.base64(15).tr('+/=lIO0', 'pqrsxyz')
SecureRandom.urlsafe_base64(15).tr('lIO0', 'sxyz')
end

module ClassMethods
Expand Down

0 comments on commit ef20641

Please sign in to comment.