~jan0sch/smederee

Showing details for patch d7aa2965983cdd00fb20629aef651f8b6a6400b3.
2024-02-06 (Tue), 4:19 PM - Jens Grassel - d7aa2965983cdd00fb20629aef651f8b6a6400b3

Hub: Set correct password reset link in email.

Fixes: https://tickets.smeder.ee/~jan0sch/smederee/tickets/6
Summary of changes
1 files modified with 3 lines added and 1 lines removed
  • modules/hub/src/main/scala/de/smederee/hub/ResetPasswordRoutes.scala with 3 added and 1 removed lines
diff -rN -u old-smederee/modules/hub/src/main/scala/de/smederee/hub/ResetPasswordRoutes.scala new-smederee/modules/hub/src/main/scala/de/smederee/hub/ResetPasswordRoutes.scala
--- old-smederee/modules/hub/src/main/scala/de/smederee/hub/ResetPasswordRoutes.scala	2025-01-13 01:41:08.483761263 +0000
+++ new-smederee/modules/hub/src/main/scala/de/smederee/hub/ResetPasswordRoutes.scala	2025-01-13 01:41:08.483761263 +0000
@@ -107,7 +107,9 @@
                                             )
                                         from <- Sync[F].delay(FromAddress("noreply@smeder.ee"))
                                         to   <- Sync[F].delay(NonEmptyList.of(user.email.toToAddress))
-                                        uri <- Sync[F].delay(external.createFullUri(uri"reset").addPath(token.toString))
+                                        uri <- Sync[F].delay(
+                                            external.createFullUri(resetChangePasswordPath.addSegment(token.toString))
+                                        )
                                         subject <- Sync[F]
                                             .delay(
                                                 SubjectLine(