Skip to content

Commit

Permalink
Create url safe password reset tokens. (#1118)
Browse files Browse the repository at this point in the history
  • Loading branch information
wout authored Apr 23, 2020
1 parent bd2e5d7 commit 679e847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lucky/support/message_verifier.cr
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module Lucky
end

private def encode(data) : String
::Base64.strict_encode(data)
::Base64.urlsafe_encode(data)
end

private def decode(data) : Bytes
Expand Down

2 comments on commit 679e847

@paulcsmith
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!! :D

@wout
Copy link
Contributor Author

@wout wout commented on 679e847 Apr 24, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome! :)

Please sign in to comment.