From 4b8ba23644a7b6342f960c7b4593f060767d21ca Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Sun, 27 Nov 2022 17:55:35 +0900 Subject: feat: Update sign-up page to new service api --- .../Internal/PasswordResetRequests/_calls.http | 11 ++- .../routes/(main)/(public)/sign-up/+page.svelte | 86 ++++++++++++++++------ 2 files changed, 70 insertions(+), 27 deletions(-) (limited to 'code') diff --git a/code/api/src/Endpoints/Internal/PasswordResetRequests/_calls.http b/code/api/src/Endpoints/Internal/PasswordResetRequests/_calls.http index c400f49..cfd2d58 100644 --- a/code/api/src/Endpoints/Internal/PasswordResetRequests/_calls.http +++ b/code/api/src/Endpoints/Internal/PasswordResetRequests/_calls.http @@ -7,11 +7,16 @@ Content-Type: application/json "email": "" } -### Create request -POST http://localhost:5000/_/password-reset-request/create +### Fulfill request +POST http://localhost:5000/_/password-reset-request/fulfill Accept: application/json Content-Type: application/json { - "email": "" + "id": "", + "newPassword": "" } + +### Is request valid +GET http://localhost:5000/_/password-reset-request/is-valid?id= +Accept: application/json diff --git a/code/app/src/routes/(main)/(public)/sign-up/+page.svelte b/code/app/src/routes/(main)/(public)/sign-up/+page.svelte index f2b0d7f..9fa8dfa 100644 --- a/code/app/src/routes/(main)/(public)/sign-up/+page.svelte +++ b/code/app/src/routes/(main)/(public)/sign-up/+page.svelte @@ -1,35 +1,62 @@ @@ -48,8 +75,10 @@
- -
+ {#if showErrorAlert} + + {/if} + - +
-- cgit v1.3