Browse Source

Fixed broken reset button

Arnaud Vergnet 3 years ago
parent
commit
0f0b63bdd7
1 changed files with 3 additions and 5 deletions
  1. 3
    5
      src/screens/Amicale/LoginScreen.js

+ 3
- 5
src/screens/Amicale/LoginScreen.js View File

@@ -10,6 +10,7 @@ import {withCollapsible} from "../../utils/withCollapsible";
10 10
 import {Collapsible} from "react-navigation-collapsible";
11 11
 import CustomTabBar from "../../components/Tabbar/CustomTabBar";
12 12
 import type {CustomTheme} from "../../managers/ThemeManager";
13
+import {Linking} from "expo";
13 14
 
14 15
 type Props = {
15 16
     navigation: Object,
@@ -30,7 +31,7 @@ type State = {
30 31
 
31 32
 const ICON_AMICALE = require('../../../assets/amicale.png');
32 33
 
33
-const RESET_PASSWORD_PATH = "password/reset";
34
+const RESET_PASSWORD_PATH = "https://www.amicale-insat.fr//password/reset";
34 35
 
35 36
 const emailRegex = /^.+@.+\..+$/;
36 37
 
@@ -67,10 +68,7 @@ class LoginScreen extends React.Component<Props, State> {
67 68
 
68 69
     handleSuccess = () => this.props.navigation.goBack();
69 70
 
70
-    onResetPasswordClick = () => this.props.navigation.navigate('amicale-website', {
71
-        screen: 'amicale-website',
72
-        params: {path: RESET_PASSWORD_PATH}
73
-    });
71
+    onResetPasswordClick = () => Linking.openURL(RESET_PASSWORD_PATH);
74 72
 
75 73
     validateEmail = () => this.setState({isEmailValidated: true});
76 74
 

Loading…
Cancel
Save