diff --git a/www/web/warpauth/views/profile.py b/www/web/warpauth/views/profile.py index 1c81ed7994aa1e17105d1c1ff6bf92d6e204c993..a7ec28d4ad0a611e2d4ad242f66a2aa642ef839f 100644 --- a/www/web/warpauth/views/profile.py +++ b/www/web/warpauth/views/profile.py @@ -90,7 +90,7 @@ def change_password(request): if ret == -1: pages["error_passwd"] = "Old password did not match" else: - send_password_change_notification(request.user.ldap_user) + send_password_change_notification(LdapUser.objects.get(uid=str(request.user))) pages["success_passwd"] = True pages['ldap_groups'] = request.user.ldap_user.group_names pages['ldap_user_form'] = LdapUserForm(instance=LdapUser.objects.get(uid=str(request.user)))