From a73bcaef05053ee585fe5d08e03716ab964bc0f2 Mon Sep 17 00:00:00 2001 From: "M.Ravi" Date: Mon, 25 Sep 2017 09:35:18 +0200 Subject: [PATCH] Store hash --- hosting/views.py | 2 +- opennebula_api/models.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hosting/views.py b/hosting/views.py index d7c4c168..887a4bb6 100644 --- a/hosting/views.py +++ b/hosting/views.py @@ -319,7 +319,7 @@ class PasswordResetConfirmView(PasswordResetConfirmViewMixin): messages.success(request, _('Password has been reset.')) # Change opennebula password - opennebula_client.change_user_password(new_password) + opennebula_client.change_user_password(user.password) return self.form_valid(form) else: diff --git a/opennebula_api/models.py b/opennebula_api/models.py index d584bf26..057139c0 100644 --- a/opennebula_api/models.py +++ b/opennebula_api/models.py @@ -438,11 +438,11 @@ class OpenNebulaManager(): self.oneadmin_client.call(oca.VmTemplate.METHODS[ 'delete'], template_id, False) - def change_user_password(self, new_password): + def change_user_password(self, passwd_hash): self.oneadmin_client.call( oca.User.METHODS['passwd'], self.opennebula_user.id, - new_password + passwd_hash ) def add_public_key(self, user, public_key='', merge=False):