Skip to content

Commit

Permalink
Fix: forgot password success page
Browse files Browse the repository at this point in the history
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
siddhantk232 authored and amitu committed Sep 4, 2024
1 parent fb199b0 commit 78c3fd5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
18 changes: 10 additions & 8 deletions pages/password-recovery.ftd
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

Expand All @@ -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

Expand All @@ -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."
1 change: 1 addition & 0 deletions scenarios/password-recovery.ftd
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
-- password-recovery.page:
site-data: scenario-site
user-data: $john-doe.jd
email: [email protected]

0 comments on commit 78c3fd5

Please sign in to comment.