generated from fastn-stack/fastn-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The password recovery message component (or forgot password success component) now takes an `email` and uses it in the message rather than the hardcoded "[email protected]".
- Loading branch information
1 parent
fb199b0
commit 78c3fd5
Showing
2 changed files
with
11 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
-- import: ui.fifthtry.com/records/user-data as ud | ||
|
||
-- component page: | ||
string email: | ||
module site-data: site-data | ||
module authenticate-user: authenticate-user | ||
ud.user-data user-data: | ||
|
@@ -35,15 +36,13 @@ hide-header: true | |
-- ds.heading-small: Recover password | ||
width: hug-content | ||
|
||
-- ds.copy-large: | ||
-- ds.copy-large: $msg(e = $page.email) | ||
align: center | ||
|
||
We have sent link to [email protected] to reset your password. | ||
|
||
-- ds.primary-button: Login | ||
;;$on-click$: $page.authenticate-user.submit-values(username = $page.current-username, password = $page.current-password) | ||
width: full | ||
radius: curved | ||
link: $page.site-data.sign-in-url | ||
|
||
-- end: ds.column | ||
|
||
|
@@ -66,15 +65,13 @@ hide-header: true | |
-- ds.heading-small: Recover password | ||
width: hug-content | ||
|
||
-- ds.copy-large: | ||
-- ds.copy-large: $msg(e = $page.email) | ||
align: center | ||
|
||
We have sent link to [email protected] to reset your password. | ||
|
||
-- ds.primary-button: Login | ||
;;$on-click$: $page.authenticate-user.submit-values(username = $page.current-username, password = $page.current-password) | ||
width: full | ||
radius: curved | ||
link: $page.site-data.sign-in-url | ||
|
||
-- end: ds.column | ||
|
||
|
@@ -85,3 +82,8 @@ hide-header: true | |
-- end: p.page | ||
|
||
-- end: page | ||
|
||
-- string msg(e): | ||
string e: | ||
|
||
"We have sent link to " + e + " to reset your password." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ | |
-- password-recovery.page: | ||
site-data: scenario-site | ||
user-data: $john-doe.jd | ||
email: [email protected] |