Skip to content

Commit 36ad810

Browse files
authored
Merge pull request #2330 from ZeroK-RTS/sprunk-patch-6
Admin resetting user password creates a message
2 parents 58cc511 + 0098a10 commit 36ad810

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Zero-K.info/Controllers/UsersController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,7 @@ public ActionResult SetPassword(int accountID, string newPassword)
481481
acc.SetPasswordPlain(newPassword);
482482
if (!string.IsNullOrEmpty(newPassword)) acc.SteamID = null;
483483
db.SaveChanges();
484+
Global.Server.GhostChanSay(GlobalConst.ModeratorChannel, string.Format("{0} changed {1} password", Global.Account.Name, acc.Name));
484485
return Content(string.Format("{0} password set to {1}", acc.Name, newPassword));
485486
}
486487

0 commit comments

Comments
 (0)