Skip to content

Commit

Permalink
backend: RegisterVerifyLogin minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
E3FxGaming committed Jul 5, 2024
1 parent 25bbbe7 commit 33f3d76
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ class RegisterVerifyLogin (
//verify account

val mailEvent: MailEvent =
applicationEvents.stream()
.filter { it is MailEvent && it.data is VerifyAccountData }
.findFirst().orElseThrow() as MailEvent
applicationEvents.stream(MailEvent::class.java)
.filter { it.data is VerifyAccountData }
.findFirst().orElseThrow()

val verificationLink = (mailEvent.data as VerifyAccountData).verificationLink
val token = verificationLink.substringAfter("token=")
Expand Down

0 comments on commit 33f3d76

Please sign in to comment.