mirror of
https://github.com/vale981/Vulcan
synced 2025-03-05 09:31:43 -05:00
Merge branch 'fix_verify_email' into current
This commit is contained in:
commit
0834f6ee78
2 changed files with 4 additions and 4 deletions
|
@ -6,7 +6,7 @@ import { STATES } from '../../helpers.js';
|
|||
|
||||
class AccountsResetPassword extends PureComponent {
|
||||
componentDidMount() {
|
||||
const token = this.props.params.token;
|
||||
const token = this.props.match.params.token;
|
||||
Accounts._loginButtonsSession.set('resetPasswordToken', token);
|
||||
}
|
||||
|
||||
|
@ -33,7 +33,7 @@ AccountsResetPassword.contextTypes = {
|
|||
|
||||
AccountsResetPassword.propsTypes = {
|
||||
currentUser: PropTypes.object,
|
||||
params: PropTypes.object,
|
||||
match: PropTypes.object,
|
||||
};
|
||||
|
||||
AccountsResetPassword.displayName = 'AccountsResetPassword';
|
||||
|
|
|
@ -14,7 +14,7 @@ class AccountsVerifyEmail extends PureComponent {
|
|||
}
|
||||
|
||||
componentDidMount() {
|
||||
const token = this.props.params.token;
|
||||
const token = this.props.match.params.token;
|
||||
Accounts.verifyEmail(token, (verifyEmailResult) => {
|
||||
if(verifyEmailResult && verifyEmailResult.error) {
|
||||
this.setState({
|
||||
|
@ -55,7 +55,7 @@ AccountsVerifyEmail.contextTypes = {
|
|||
|
||||
AccountsVerifyEmail.propsTypes = {
|
||||
currentUser: PropTypes.object,
|
||||
params: PropTypes.object,
|
||||
match: PropTypes.object,
|
||||
};
|
||||
|
||||
AccountsVerifyEmail.displayName = 'AccountsEnrollAccount';
|
||||
|
|
Loading…
Add table
Reference in a new issue