Fix MFA enforcement on login and page load (#6356)

Этот коммит содержится в:
Joram Wilander
2017-05-09 07:48:57 -05:00
коммит произвёл GitHub
родитель fb4d72bd8a
Коммит 202c383d8d
5 изменённых файлов: 20 добавлений и 6 удалений

Просмотреть файл

@@ -8,6 +8,8 @@ import React from 'react';
import {FormattedMessage, FormattedHTMLMessage} from 'react-intl';
import {browserHistory} from 'react-router/es6';
import {loadMe} from 'actions/user_actions.jsx';
export default class Confirm extends React.Component {
constructor(props) {
super(props);
@@ -25,7 +27,9 @@ export default class Confirm extends React.Component {
submit(e) {
e.preventDefault();
browserHistory.push('/');
loadMe(() => {
browserHistory.push('/');
});
}
onKeyPress(e) {