From a9d58b6b06dacf0df6084ee555e847e7a44a9bae Mon Sep 17 00:00:00 2001 From: Anton Tranelis Date: Mon, 25 Aug 2025 20:02:46 +0200 Subject: [PATCH] add optional request password button to login page --- app/src/App.tsx | 10 +++++++- lib/src/Components/Auth/LoginPage.tsx | 23 ++++++++++++++----- .../Components/Auth/RequestPasswordPage.tsx | 2 +- lib/src/types/UtopiaMapProps.d.ts | 1 + 4 files changed, 28 insertions(+), 8 deletions(-) diff --git a/app/src/App.tsx b/app/src/App.tsx index caece166..9d507d4c 100644 --- a/app/src/App.tsx +++ b/app/src/App.tsx @@ -170,7 +170,15 @@ function App() { }> } /> - } /> + + } + /> } /> ('') const [password, setPassword] = useState('') @@ -106,11 +107,13 @@ export function LoginPage({ inviteApi }: Props) { className='tw:input tw:input-bordered tw:w-full tw:max-w-xs' />
- - - Forgot Password? - - + {!showRequestPassword && ( + + + Forgot Password? + + + )}
+ {showRequestPassword && ( + <> +
OR
+ + + + + )}
) diff --git a/lib/src/Components/Auth/RequestPasswordPage.tsx b/lib/src/Components/Auth/RequestPasswordPage.tsx index 0f15acd5..dcfb416f 100644 --- a/lib/src/Components/Auth/RequestPasswordPage.tsx +++ b/lib/src/Components/Auth/RequestPasswordPage.tsx @@ -37,7 +37,7 @@ export function RequestPasswordPage({ resetUrl }: { resetUrl: string }) { return ( -

Reset Password

+

Request Password