1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-02-05 21:57:24 +03:00

Fix token for OneGate (size must be 32)

This commit is contained in:
Jaime Melis 2017-06-18 07:03:13 -04:00
parent 0888ae4810
commit 46725391be

View File

@ -107,7 +107,7 @@ module OneGateCloudAuth
def decrypt(token_password, data)
@cipher.decrypt
@cipher.key = token_password
@cipher.key = token_password[0..31]
rc = @cipher.update(Base64::decode64(data))
rc << @cipher.final