aboutsummaryrefslogtreecommitdiff
path: root/src/screens/onboarding/Login.tsx
diff options
context:
space:
mode:
authorAshm Walia <40498934+ashmgarv@users.noreply.github.com>2020-12-08 20:19:32 -0800
committerGitHub <noreply@github.com>2020-12-08 23:19:32 -0500
commitdb575615046544e83759a3615f37540305aa9742 (patch)
treef30a29f47420990872c9baede4978582cea0b607 /src/screens/onboarding/Login.tsx
parent0cb19c5b173d4cf6ba67378cbffd61abac7f18c3 (diff)
[TMA-308] Forgot password logic [Frontend] (#131)
* Done with changes * Submit on enter * Fixed StrongPassword issue * Clean and modular Verification.tsx * small fix
Diffstat (limited to 'src/screens/onboarding/Login.tsx')
-rw-r--r--src/screens/onboarding/Login.tsx13
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 />