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
Niklas Fiekas 2019-05-05 00:35:46 +02:00
parent 7b0c87c980
commit bd605d9312
1 changed files with 1 additions and 1 deletions

View File

@ -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"
}
}