mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 11:22:55 +09:00
bug #991: server_cipher passwords are hashed
This commit is contained in:
1 parent
2e508eb339
commit
f3eee993f3
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user