aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common/components/BottomMenu.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-08-27 12:51:32 -0700
committerAnton Tananaev <anton@traccar.org>2022-08-27 12:51:32 -0700
commitb4a769e15fb18d854af56c24e39b0b72fff273a0 (patch)
treeeaf1d43df634de82dc7731a8e53636a91db5a94b /modern/src/common/components/BottomMenu.js
parentc0fcac0d1956caa2c426f1b265ccab7bdfc007bc (diff)
downloadtrackermap-web-b4a769e15fb18d854af56c24e39b0b72fff273a0.tar.gz
trackermap-web-b4a769e15fb18d854af56c24e39b0b72fff273a0.tar.bz2
trackermap-web-b4a769e15fb18d854af56c24e39b0b72fff273a0.zip
Support biometric authentication
Diffstat (limited to 'modern/src/common/components/BottomMenu.js')
-rw-r--r--modern/src/common/components/BottomMenu.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/modern/src/common/components/BottomMenu.js b/modern/src/common/components/BottomMenu.js
index 3ef464e0..68ccf056 100644
--- a/modern/src/common/components/BottomMenu.js
+++ b/modern/src/common/components/BottomMenu.js
@@ -14,6 +14,7 @@ import ExitToAppIcon from '@mui/icons-material/ExitToApp';
import { sessionActions } from '../../store';
import { useTranslation } from './LocalizationProvider';
import { useRestriction } from '../util/permissions';
+import { nativePostMessage } from './NativeInterface';
const BottomMenu = () => {
const navigate = useNavigate();
@@ -70,6 +71,7 @@ const BottomMenu = () => {
}
await fetch('/api/session', { method: 'DELETE' });
+ nativePostMessage('logout');
navigate('/login');
dispatch(sessionActions.updateUser(null));
};