Skip to content

Commit e865f2a

Browse files
committed
Fix garden link on password reset completion
1 parent 2f92dc8 commit e865f2a

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

frontend/pages/reset-password.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ watchEffect(() => {
6262
const password = ref("");
6363
const confirmPassword = ref("");
6464
65+
const userId = ref<string>();
66+
6567
async function submitNewPassword() {
6668
loading.value = true;
6769
@@ -75,6 +77,8 @@ async function submitNewPassword() {
7577
});
7678
7779
setMe(passwordResponse.user);
80+
userId.value = passwordResponse.user.id;
81+
7882
page.value = "done";
7983
} catch (error) {
8084
if (getApiErrorCode(error) === "RESOURCE_NOT_FOUND") {
@@ -174,8 +178,7 @@ async function submitNewPassword() {
174178
</p>
175179

176180
<p>
177-
<!-- TODO: Ensure this link works, or change it to use the user ID. -->
178-
<Button href="/files/u/me">Visit Your Garden</Button>
181+
<Button :href="`/files/u/${userId}`">Visit Your Garden</Button>
179182
</p>
180183
</template>
181184

0 commit comments

Comments
 (0)