mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 19:20:37 +02:00
Change Base64 encoding to be url_safe, add crude implementation of a Controller
This commit is contained in:
parent
dc8230dcc2
commit
35c3f0a5bf
6 changed files with 50 additions and 7 deletions
|
@ -28,7 +28,7 @@ class AuthTokenCreator
|
|||
encryptor.encrypt
|
||||
encryptor.key = key
|
||||
encrypted_bytes = encryptor.update(hashable) + encryptor.final
|
||||
Base64.encode64(encrypted_bytes)
|
||||
Base64.urlsafe_encode64(encrypted_bytes)
|
||||
end
|
||||
|
||||
def token_in_hash
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue