Update test room manager to not return passwords

This commit is contained in:
smoogipoo
2021-07-19 19:55:08 +09:00
parent c6bc95767d
commit 063f14da98
2 changed files with 37 additions and 22 deletions

View File

@ -9,23 +9,23 @@ namespace osu.Game.Online.Rooms
{
public class JoinRoomRequest : APIRequest
{
private readonly Room room;
private readonly string password;
public readonly Room Room;
public readonly string Password;
public JoinRoomRequest(Room room, string password)
{
this.room = room;
this.password = password;
Room = room;
Password = password;
}
protected override WebRequest CreateWebRequest()
{
var req = base.CreateWebRequest();
req.Method = HttpMethod.Put;
req.AddParameter("password", password);
req.AddParameter("password", Password);
return req;
}
protected override string Target => $"rooms/{room.RoomID.Value}/users/{User.Id}";
protected override string Target => $"rooms/{Room.RoomID.Value}/users/{User.Id}";
}
}