From 7c6d6c9c30f0a6c6c6e33e8e63d3aad65c7b1c0e Mon Sep 17 00:00:00 2001
From: Flymax
Date: Mon, 29 Jun 2020 01:00:40 +0900
Subject: [PATCH 1/2] Bug fixes: logout
---
cvat-ui/src/containers/header/header.tsx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cvat-ui/src/containers/header/header.tsx b/cvat-ui/src/containers/header/header.tsx
index 59dc3f023f1..ed0e55f631c 100644
--- a/cvat-ui/src/containers/header/header.tsx
+++ b/cvat-ui/src/containers/header/header.tsx
@@ -32,7 +32,7 @@ interface StateToProps {
}
interface DispatchToProps {
- onLogout: typeof logoutAsync;
+ onLogout: () => void;
switchSettingsDialog: (show: boolean) => void;
}
@@ -80,7 +80,7 @@ function mapStateToProps(state: CombinedState): StateToProps {
function mapDispatchToProps(dispatch: any): DispatchToProps {
return {
- onLogout: logoutAsync,
+ onLogout: (): void => dispatch(logoutAsync()),
switchSettingsDialog: (show: boolean): void => dispatch(switchSettingsDialog(show)),
};
}
From 38b19cbe7740b55990820ba2d577397f7d274cc3 Mon Sep 17 00:00:00 2001
From: lizhming
Date: Tue, 30 Jun 2020 20:24:31 +0900
Subject: [PATCH 2/2] Update CHANGELOG.md
---
CHANGELOG.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ef041139e17..79bdeceb694 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -54,7 +54,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- A couple of exceptions in AAM related with early object activation ()
- Propagation from the latest frame ()
- Number attribute value validation (didn't work well with floats) ()
-
+- Fixed Logout function ()
### Security
- SQL injection in Django `CVE-2020-9402` ()