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
 import {Collapsible} from "react-navigation-collapsible";
10
 import {Collapsible} from "react-navigation-collapsible";
11
 import CustomTabBar from "../../components/Tabbar/CustomTabBar";
11
 import CustomTabBar from "../../components/Tabbar/CustomTabBar";
12
 import type {CustomTheme} from "../../managers/ThemeManager";
12
 import type {CustomTheme} from "../../managers/ThemeManager";
13
+import {Linking} from "expo";
13
 
14
 
14
 type Props = {
15
 type Props = {
15
     navigation: Object,
16
     navigation: Object,
30
 
31
 
31
 const ICON_AMICALE = require('../../../assets/amicale.png');
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
 const emailRegex = /^.+@.+\..+$/;
36
 const emailRegex = /^.+@.+\..+$/;
36
 
37
 
67
 
68
 
68
     handleSuccess = () => this.props.navigation.goBack();
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
     validateEmail = () => this.setState({isEmailValidated: true});
73
     validateEmail = () => this.setState({isEmailValidated: true});
76
 
74
 

Loading…
Cancel
Save