diff options
Diffstat (limited to 'src/screens/onboarding/Login.tsx')
| -rw-r--r-- | src/screens/onboarding/Login.tsx | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/screens/onboarding/Login.tsx b/src/screens/onboarding/Login.tsx index 2738d6ca..cb550ef8 100644 --- a/src/screens/onboarding/Login.tsx +++ b/src/screens/onboarding/Login.tsx @@ -127,10 +127,10 @@ const Login: React.FC<LoginProps> = ({navigation}: LoginProps) => { }; /** - * Handler for the Let's Start button or the Go button on the keyboard. - Makes a POST request to the Django login API and presents Alerts based on the status codes that the backend returns. - * Stores token received in the response, into client's AsynStorage - */ + * Handler for the Let's Start button or the Go button on the keyboard. + Makes a POST request to the Django login API and presents Alerts based on the status codes that the backend returns. + * Stores token received in the response, into client's AsynStorage + */ const handleLogin = async () => { if (!form.attemptedSubmit) { setForm({ @@ -207,7 +207,7 @@ const Login: React.FC<LoginProps> = ({navigation}: LoginProps) => { accessibilityLabel="Forgot password button" accessibilityHint="Select this if you forgot your tagg password" style={styles.forgotPassword} - onPress={() => Alert.alert("tagg! You're it!")}> + onPress={() => navigation.navigate('PasswordResetRequest')}> <Text style={styles.forgotPasswordText}>Forgot password</Text> </TouchableOpacity> ); @@ -293,8 +293,7 @@ const Login: React.FC<LoginProps> = ({navigation}: LoginProps) => { attemptedSubmit={form.attemptedSubmit} ref={inputRef} /> - {/* Commenting this line because the Forgot Password has not been implemented for Alpha */} - {/* <ForgotPassword /> */} + <ForgotPassword /> <LoginButton /> </KeyboardAvoidingView> <RegistrationPrompt /> |
