Redundant failed login attempts with no auth credentials fixed

This commit is contained in:
VakarisZ 2020-06-25 10:52:56 +03:00
parent e58cdee246
commit d22e784aaa
1 changed files with 5 additions and 1 deletions

View File

@ -29,6 +29,9 @@ const reportZeroTrustRoute = '/report/zeroTrust';
class AppComponent extends AuthComponent { class AppComponent extends AuthComponent {
updateStatus = () => { updateStatus = () => {
if (this.state.isLoggedIn === false){
return
}
this.auth.loggedIn() this.auth.loggedIn()
.then(res => { .then(res => {
if (this.state.isLoggedIn !== res) { if (this.state.isLoggedIn !== res) {
@ -110,7 +113,8 @@ class AppComponent extends AuthComponent {
report_done: false, report_done: false,
isLoggedIn: undefined, isLoggedIn: undefined,
needsRegistration: undefined needsRegistration: undefined
} },
noAuthLoginAttempted: undefined
}; };
} }