Skip to content

Commit

Permalink
fix(mail): fixed mail not sending valid link
Browse files Browse the repository at this point in the history
  • Loading branch information
zZHorizonZz committed Aug 19, 2024
1 parent a9d8c5b commit 1def690
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
@Path("/frontend")
@AllArgsConstructor
@Tag(name = "Email Password Service", description = "API for user authentication with email and password")
public class EmailPasswordResource {
public class IdentifierPasswordResource {

private final ApplicationConfig applicationConfig;

Expand Down Expand Up @@ -71,7 +71,6 @@ public Response login(@BeanParam @Valid LoginRequest request) {
@POST
@Transactional
@Path("/verify-email")
@Consumes(MediaType.MEDIA_TYPE_WILDCARD)
public Response verifyEmail(@QueryParam("token") String token, @QueryParam("redirect_to") URI redirectTo) {
verifyMagicLink.handle(new VerifyMagicLinkInput(token));
if (redirectTo != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ default String defaultCreateConfirmationMailTemplate(String baseUrl, String sess
<p>
You have successfully created an externalAccount on Zenei. To activate your externalAccount, please click the link below.
</p>
<a href="%s?sessionToken=%s">Verify Email</a>
<a href="%s?token=%s">Verify Email</a>
</body>
</html>
""",
Expand Down

0 comments on commit 1def690

Please sign in to comment.