Skip to content

Commit

Permalink
spotless apply
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheikah45 committed Sep 10, 2023
1 parent f3b90b9 commit 4aacd3e
Showing 1 changed file with 5 additions and 5 deletions.
Expand Up @@ -89,15 +89,15 @@ class RegisterView(private val registrationService: RegistrationService, fafProp
),
Anchor(
fafProperties.account().registration().privacyStatementUrl(),
getTranslation("register.privacy")
getTranslation("register.privacy"),
).apply { addClassName("policy-link") },
)
val rulesLayout = CompactHorizontalLayout(
rules,
Text(readAndAgree),
Anchor(
fafProperties.account().registration().rulesUrl(),
getTranslation("register.rules")
getTranslation("register.rules"),
).apply { addClassName("policy-link") },
)

Expand All @@ -121,9 +121,9 @@ class RegisterView(private val registrationService: RegistrationService, fafProp
).bind("username")

binder.forField(email).withValidator(EmailValidator(getTranslation("register.email.invalid"))).withValidator(
{ email -> registrationService.emailAvailable(email) == EmailStatus.EMAIL_AVAILABLE },
getTranslation("register.email.taken"),
).bind("email")
{ email -> registrationService.emailAvailable(email) == EmailStatus.EMAIL_AVAILABLE },
getTranslation("register.email.taken"),
).bind("email")

binder.forField(termsOfService).asRequired(getTranslation("register.acknowledge.terms")).bind("termsOfService")

Expand Down

0 comments on commit 4aacd3e

Please sign in to comment.