diff --git a/front/src/actions/gateway.js b/front/src/actions/gateway.js index 6105e71df8..77031b9d32 100644 --- a/front/src/actions/gateway.js +++ b/front/src/actions/gateway.js @@ -57,7 +57,10 @@ function createActions(store) { } } }, - async loginTwoFactor(state) { + async loginTwoFactor(state, e) { + if (e) { + e.preventDefault(); + } store.setState({ gatewayLoginStatus: RequestStatus.Getting }); diff --git a/front/src/actions/login/loginGateway.js b/front/src/actions/login/loginGateway.js index 7f52b38cb1..cb9581e6e2 100644 --- a/front/src/actions/login/loginGateway.js +++ b/front/src/actions/login/loginGateway.js @@ -57,7 +57,10 @@ function createActions(store) { } } }, - async loginTwoFactor(state) { + async loginTwoFactor(state, e) { + if (e) { + e.preventDefault(); + } store.setState({ gatewayLoginStatus: RequestStatus.Getting });