mirror of
https://github.com/evennia/evennia.git
synced 2026-03-30 12:37:16 +02:00
Fixed bug in @userpassword that still used old 'user' field to look up the password.
This commit is contained in:
parent
ecc2b11747
commit
f25d512c30
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue