mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-30 22:50:10 +03:00
M #-: Avoid login failure when quote in password
This commit is contained in:
parent
d0fd7d2f0a
commit
09f4c93b0c
@ -83,9 +83,9 @@ module OpenNebulaCloudAuth
|
||||
|
||||
# Check if the user authenticated with a scoped token. In this case
|
||||
# encode the EGID in the username as "user:egid"
|
||||
egid = user["//LOGIN_TOKEN [ TOKEN = \"#{password}\" ]/EGID"]
|
||||
|
||||
auth_name = user.name
|
||||
|
||||
egid = user["//LOGIN_TOKEN [ TOKEN = \"#{password}\" ]/EGID"] rescue nil
|
||||
auth_name = "#{auth_name}:#{egid}" if egid
|
||||
|
||||
return auth_name
|
||||
|
Loading…
x
Reference in New Issue
Block a user