Skip to content

Commit

Permalink
Fix GladysAssistant#562: Make login work on FireFox
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Gilles committed Oct 29, 2019
1 parent 2793376 commit b70f6a4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion front/src/actions/gateway.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ function createActions(store) {
}
}
},
async loginTwoFactor(state) {
async loginTwoFactor(state, e) {
if (e) {
e.preventDefault();
}
store.setState({
gatewayLoginStatus: RequestStatus.Getting
});
Expand Down
5 changes: 4 additions & 1 deletion front/src/actions/login/loginGateway.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ function createActions(store) {
}
}
},
async loginTwoFactor(state) {
async loginTwoFactor(state, e) {
if (e) {
e.preventDefault();
}
store.setState({
gatewayLoginStatus: RequestStatus.Getting
});
Expand Down

0 comments on commit b70f6a4

Please sign in to comment.