mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-29 08:00:19 +01:00
Fix system users being able to "change" their PW
This commit is contained in:
@@ -221,6 +221,9 @@ namespace Tgstation.Server.Host.Controllers
|
||||
|
||||
if (model.Password != null)
|
||||
{
|
||||
if (model.SystemIdentifier != null)
|
||||
return BadRequest(new ErrorMessageResponse(ErrorCode.UserMismatchPasswordSid));
|
||||
|
||||
var result = TrySetPassword(originalUser, model.Password, false);
|
||||
if (result != null)
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user