From f25d512c30c3b06780681fca4e85e94957115ed7 Mon Sep 17 00:00:00 2001 From: Griatch Date: Sat, 9 Aug 2014 18:17:03 +0200 Subject: [PATCH] Fixed bug in @userpassword that still used old 'user' field to look up the password. --- src/commands/default/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/default/admin.py b/src/commands/default/admin.py index 9331f79e90..9d0230f4bb 100644 --- a/src/commands/default/admin.py +++ b/src/commands/default/admin.py @@ -428,8 +428,8 @@ class CmdNewPassword(MuxCommand): player = caller.search_player(self.lhs) if not player: return - player.user.set_password(self.rhs) - player.user.save() + player.set_password(self.rhs) + player.save() self.msg("%s - new password set to '%s'." % (player.name, self.rhs)) if player.character != caller: player.msg("%s has changed your password to '%s'." % (caller.name,