mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 03:12:55 +09:00
bug #847: Delete spaces from password, if x509 driver
This commit is contained in:
1 parent
246fd65c0a
commit
26e313a154
1 file changed
+4
@@ -40,6 +40,10 @@ class OneUserHelper < OpenNebulaHelper::OneHelper
|
||||
password = arg
|
||||
end
|
||||
|
||||
if options[:driver] == OpenNebula::User::X509_AUTH
|
||||
password.delete!("\s")
|
||||
end
|
||||
|
||||
if options[:sha1]
|
||||
require 'digest/sha1'
|
||||
password = Digest::SHA1.hexdigest(password)
|
||||
|
||||
Reference in new issue
Block a user