aboutsummaryrefslogtreecommitdiff
path: root/modern/src/login/LoginPage.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/login/LoginPage.js')
-rw-r--r--modern/src/login/LoginPage.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/modern/src/login/LoginPage.js b/modern/src/login/LoginPage.js
index 0077f6bd..34d0e7d8 100644
--- a/modern/src/login/LoginPage.js
+++ b/modern/src/login/LoginPage.js
@@ -13,6 +13,7 @@ import { useLocalization, useTranslation } from '../common/components/Localizati
import LoginLayout from './LoginLayout';
import usePersistedState from '../common/util/usePersistedState';
import logoSvg from '../resources/images/logo.svg';
+import { nativePostMessage } from '../common/components/NativeInterface';
const useStyles = makeStyles((theme) => ({
legacy: {
@@ -73,6 +74,7 @@ const LoginPage = () => {
if (response.ok) {
const user = await response.json();
dispatch(sessionActions.updateUser(user));
+ nativePostMessage('login');
navigate('/');
} else {
throw Error(await response.text());