|
@@ -7,7 +7,6 @@ import ConnectionManager from "../../managers/ConnectionManager";
|
7
|
7
|
import i18n from 'i18n-js';
|
8
|
8
|
import ErrorDialog from "../../components/Dialog/ErrorDialog";
|
9
|
9
|
import {CommonActions} from "@react-navigation/native";
|
10
|
|
-import {Linking} from "expo";
|
11
|
10
|
|
12
|
11
|
type Props = {
|
13
|
12
|
navigation: Object,
|
|
@@ -26,7 +25,7 @@ type State = {
|
26
|
25
|
|
27
|
26
|
const ICON_AMICALE = require('../../../assets/amicale.png');
|
28
|
27
|
|
29
|
|
-const RESET_PASSWORD_LINK = "https://www.amicale-insat.fr/password/reset";
|
|
28
|
+const RESET_PASSWORD_PATH = "password/reset";
|
30
|
29
|
|
31
|
30
|
const emailRegex = /^.+@.+\..+$/;
|
32
|
31
|
|
|
@@ -78,7 +77,10 @@ class LoginScreen extends React.Component<Props, State> {
|
78
|
77
|
|
79
|
78
|
handleSuccess = () => this.props.navigation.navigate(this.nextScreen);
|
80
|
79
|
|
81
|
|
- onResetPasswordClick = () => Linking.openURL(RESET_PASSWORD_LINK);
|
|
80
|
+ onResetPasswordClick = () => this.props.navigation.navigate('amicale-website', {
|
|
81
|
+ screen: 'amicale-website',
|
|
82
|
+ params: {path: RESET_PASSWORD_PATH}
|
|
83
|
+ });
|
82
|
84
|
|
83
|
85
|
validateEmail = () => this.setState({isEmailValidated: true});
|
84
|
86
|
|