-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
integrate with frontend (email currently requires manual input)
- Loading branch information
Showing
1 changed file
with
8 additions
and
2 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 |
---|---|---|
|
@@ -17,6 +17,7 @@ import ResponsiveModalWindow from "../common/responsive/ResponsiveModalWindow"; | |
import ResponsiveAuthContainer from "../common/responsive/ResponsiveAuthContainer"; | ||
import background from "../assets/background.png"; | ||
import backgroundMobile from "../assets/background_mobile.png"; | ||
import AuthAPIClient from "../../APIClients/AuthAPIClient"; | ||
|
||
const CreatePasswordPage = (): React.ReactElement => { | ||
const [showModal, setShowModal] = React.useState(false); | ||
|
@@ -57,9 +58,14 @@ const CreatePasswordPage = (): React.ReactElement => { | |
if (validatePasswords()) { | ||
return; | ||
} | ||
setShowModal(true); | ||
|
||
// whoever is handling the email thing needs to pass in the email | ||
AuthAPIClient.setPassword("[email protected]", password).then((resetPasswordResponse)=> { | ||
if (resetPasswordResponse.success) { | ||
setShowModal(true); | ||
} | ||
}) | ||
|
||
// RESET PASSWORD LOGIC HERE | ||
}; | ||
return ( | ||
<Flex | ||
|