Skip to content

Commit

Permalink
use netConfig.domain in LilaCookie
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Dec 29, 2024
1 parent 75e7b57 commit fcbf5be
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions modules/security/src/main/LilaCookie.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ import scalalib.SecureRandom
import lila.core.config.{ NetDomain, NetConfig }
import lila.core.security.LilaCookie

final class LilaCookie(domain: NetDomain, baker: SessionCookieBaker, config: NetConfig)
extends lila.core.security.LilaCookie:
final class LilaCookie(baker: SessionCookieBaker, config: NetConfig) extends lila.core.security.LilaCookie:

private val cookieDomain = domain.value.split(":").head
private val cookieDomain = config.domain.value.split(":").head

def makeSessionId(using RequestHeader): Cookie = session(LilaCookie.sessionId, generateSessionId())

Expand Down

0 comments on commit fcbf5be

Please sign in to comment.