mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-21 04:12:37 +09:00
appmarket: When updating a user encrypt the password if provided
This commit is contained in:
1 parent
7351fe86bc
commit
4384333a37
1 file changed
+2
@@ -127,6 +127,8 @@ class User
|
||||
|
||||
if !hash['password']
|
||||
hash['password'] = user['password']
|
||||
else
|
||||
hash['password'] = generate_password(hash['password'])
|
||||
end
|
||||
|
||||
validator.validate!(hash, session.schema(:user))
|
||||
|
||||
Reference in new issue
Block a user