File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed
src/main/java/app/fyreplace/api/emails Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,8 @@ public abstract class EmailBase extends Mail {
5757
5858 protected abstract String action ();
5959
60+ protected abstract String fragment ();
61+
6062 protected abstract TemplateInstance textTemplate ();
6163
6264 protected abstract TemplateInstance htmlTemplate ();
@@ -91,7 +93,7 @@ protected String getLink() {
9193 .scheme (customDeepLinks ? appFrontCustomScheme : appFrontUrl .getScheme ())
9294 .path (path ())
9395 .queryParam ("action" , action ())
94- .fragment (getRandomCode ())
96+ .fragment (fragment ())
9597 .build ()
9698 .toString ();
9799 }
Original file line number Diff line number Diff line change @@ -16,6 +16,11 @@ protected String action() {
1616 return "email" ;
1717 }
1818
19+ @ Override
20+ protected String fragment () {
21+ return email .email + ':' + getRandomCode ();
22+ }
23+
1924 @ Override
2025 protected TemplateInstance textTemplate () {
2126 return Templates .text (getTemplateCommonData ());
Original file line number Diff line number Diff line change @@ -5,4 +5,9 @@ public abstract class UserEmailBase extends EmailBase {
55 protected String path () {
66 return email .user .active ? "/login" : "/register" ;
77 }
8+
9+ @ Override
10+ protected String fragment () {
11+ return getRandomCode ();
12+ }
813}
You can’t perform that action at this time.
0 commit comments