Show errors from failed register request

Also include a `@` in the valid chars for "idents". This allows to use
an e-mail address as username.
This commit is contained in:
Eike Kettner
2021-03-10 22:14:55 +01:00
parent 70b5625c48
commit a4a84abae5
3 changed files with 20 additions and 8 deletions

View File

@ -26,7 +26,7 @@ object Ident {
implicit val identEq: Eq[Ident] =
Eq.by(_.id)
val chars: Set[Char] = (('A' to 'Z') ++ ('a' to 'z') ++ ('0' to '9') ++ "-_.").toSet
val chars: Set[Char] = (('A' to 'Z') ++ ('a' to 'z') ++ ('0' to '9') ++ "-_.@").toSet
def randomUUID[F[_]: Sync]: F[Ident] =
Sync[F].delay(unsafe(UUID.randomUUID.toString))