Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
laks0407 committed Nov 13, 2024
1 parent 7c5123b commit c9706c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,10 @@ const App = (): React.ReactElement => {
<Switch>
<Route exact path={Routes.LOGIN_PAGE} component={Login} />
<Route exact path={Routes.SIGNUP_PAGE} component={Signup} />
<PrivateRoute
<Route
exact
path={Routes.FORGOT_PASSWORD_PAGE}
component={ForgotPasswordPage}
allowedRoles={AuthConstants.ALL_ROLES}
/>
<PrivateRoute
exact
Expand Down
6 changes: 4 additions & 2 deletions frontend/src/components/pages/ForgotPassword.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ const ForgotPassword = (): React.ReactElement => {
const [userEmailId, setUserEmaild] = useState("");

const handleUserAuth = (userEmail: string) => {
const emailPattern = /^[^\s@]+@humanesociety\.org$/;
const emailPattern =

Check warning on line 27 in frontend/src/components/pages/ForgotPassword.tsx

View workflow job for this annotation

GitHub Actions / run-lint

Delete `⏎···`
/^[^\s@]+@(humanesociety\.org|uwblueprint\.org)$/;
// added uwblueprint for test
const sentEmails: SentEmail[] = JSON.parse(
localStorage.getItem("sentEmails") || "[]",
);
Expand Down Expand Up @@ -124,7 +126,7 @@ const ForgotPassword = (): React.ReactElement => {
/>
{!validUser && (
<FormErrorMessage fontSize="16px">
Please enter a valid email.
Must be a valid humanesociety.org email
</FormErrorMessage>
)}
</FormControl>
Expand Down

0 comments on commit c9706c6

Please sign in to comment.