mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
bug #991: server_cipher passwords are hashed
This commit is contained in:
parent
2e508eb339
commit
f3eee993f3
@ -44,7 +44,7 @@ class OneUserHelper < OpenNebulaHelper::OneHelper
|
||||
password.delete!("\s")
|
||||
end
|
||||
|
||||
if options[:sha1]
|
||||
if options[:sha1] || options[:driver] == OpenNebula::User::CIPHER_AUTH
|
||||
require 'digest/sha1'
|
||||
password = Digest::SHA1.hexdigest(password)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user