auth giving out actual random seesionId
This commit is contained in:
parent
62d63546c4
commit
867b2f0f20
|
@ -42,8 +42,7 @@ object Auth {
|
||||||
override def joinRoom(roomId: RoomID, playerId: PlayerID): F[ResponseCookie] = {
|
override def joinRoom(roomId: RoomID, playerId: PlayerID): F[ResponseCookie] = {
|
||||||
// TODO check for existing session for same room
|
// TODO check for existing session for same room
|
||||||
// and do i want to logout if existing session for another room? ugh
|
// and do i want to logout if existing session for another room? ugh
|
||||||
// newSessionId = Random.nextLong() // TODO return after i stop mocking RoomService
|
val newSessionId = Random.nextLong()
|
||||||
val newSessionId = TestModels.testSessionId
|
|
||||||
sessions
|
sessions
|
||||||
.update(_.updated(newSessionId, (roomId, playerId)))
|
.update(_.updated(newSessionId, (roomId, playerId)))
|
||||||
.as(
|
.as(
|
||||||
|
|
Loading…
Reference in New Issue