summaryrefslogtreecommitdiffstats
path: root/webapp/components
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-05-09 07:48:57 -0500
committerGitHub <noreply@github.com>2017-05-09 07:48:57 -0500
commit202c383d8dc23ff3c0633fff99bd7da95397fe3a (patch)
treeb9f06ca4dd84a90fd53676347820898c951829ef /webapp/components
parentfb4d72bd8a3a9b533571e42cfb1b7e2d1702f6be (diff)
downloadchat-202c383d8dc23ff3c0633fff99bd7da95397fe3a.tar.gz
chat-202c383d8dc23ff3c0633fff99bd7da95397fe3a.tar.bz2
chat-202c383d8dc23ff3c0633fff99bd7da95397fe3a.zip
Fix MFA enforcement on login and page load (#6356)
Diffstat (limited to 'webapp/components')
-rw-r--r--webapp/components/mfa/components/confirm.jsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/webapp/components/mfa/components/confirm.jsx b/webapp/components/mfa/components/confirm.jsx
index a6c2eda4e..6ec99ef47 100644
--- a/webapp/components/mfa/components/confirm.jsx
+++ b/webapp/components/mfa/components/confirm.jsx
@@ -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) {