forked from vergnet/application-amicale
Fixed broken reset button
This commit is contained in:
parent
ac9709d666
commit
0f0b63bdd7
1 changed files with 3 additions and 5 deletions
|
@ -10,6 +10,7 @@ import {withCollapsible} from "../../utils/withCollapsible";
|
||||||
import {Collapsible} from "react-navigation-collapsible";
|
import {Collapsible} from "react-navigation-collapsible";
|
||||||
import CustomTabBar from "../../components/Tabbar/CustomTabBar";
|
import CustomTabBar from "../../components/Tabbar/CustomTabBar";
|
||||||
import type {CustomTheme} from "../../managers/ThemeManager";
|
import type {CustomTheme} from "../../managers/ThemeManager";
|
||||||
|
import {Linking} from "expo";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
navigation: Object,
|
navigation: Object,
|
||||||
|
@ -30,7 +31,7 @@ type State = {
|
||||||
|
|
||||||
const ICON_AMICALE = require('../../../assets/amicale.png');
|
const ICON_AMICALE = require('../../../assets/amicale.png');
|
||||||
|
|
||||||
const RESET_PASSWORD_PATH = "password/reset";
|
const RESET_PASSWORD_PATH = "https://www.amicale-insat.fr//password/reset";
|
||||||
|
|
||||||
const emailRegex = /^.+@.+\..+$/;
|
const emailRegex = /^.+@.+\..+$/;
|
||||||
|
|
||||||
|
@ -67,10 +68,7 @@ class LoginScreen extends React.Component<Props, State> {
|
||||||
|
|
||||||
handleSuccess = () => this.props.navigation.goBack();
|
handleSuccess = () => this.props.navigation.goBack();
|
||||||
|
|
||||||
onResetPasswordClick = () => this.props.navigation.navigate('amicale-website', {
|
onResetPasswordClick = () => Linking.openURL(RESET_PASSWORD_PATH);
|
||||||
screen: 'amicale-website',
|
|
||||||
params: {path: RESET_PASSWORD_PATH}
|
|
||||||
});
|
|
||||||
|
|
||||||
validateEmail = () => this.setState({isEmailValidated: true});
|
validateEmail = () => this.setState({isEmailValidated: true});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue