fix email change tokens after 5c94ebc99a
Creating the token was relying on implicit string conversion, so tokens were now looking like EmailAddress(****)|1ddaa4|7ba717ed6f49ad.v2
parent
7b0c87c980
commit
bd605d9312
|
@ -58,7 +58,7 @@ ${Mailgun.txt.serviceNote}
|
|||
case _ => none
|
||||
}
|
||||
def write(a: Option[TokenPayload]) = a ?? {
|
||||
case TokenPayload(userId, email) => s"$userId$sep$email"
|
||||
case TokenPayload(userId, EmailAddress(email)) => s"$userId$sep$email"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue