Skip to content
Snippets Groups Projects
Commit 0cc81250 authored by Olgun Cengiz's avatar Olgun Cengiz :drum:
Browse files

resolving discussions

parent ecf0a0b3
No related branches found
No related tags found
1 merge request!17Resolve "System should block the login option for defined period of time, when user enter wrong local device PIN more than 3 attempts"
......@@ -557,16 +557,13 @@ function decryptMessage(message, password) {
failPincodeAttempt(password);
});
} else {
return new Promise(function () {
const message = getTimeLeftInLocalStorage();
throw(message);
});
return Promise.reject(getTimeLeftInLocalStorage());
}
}
//*********************************************************************************
function getBlockFinishTimeInLocalStorage() {
return localStorage.getItem("blockFinishTime") ? localStorage.getItem("blockFinishTime") : getCurrentTime();
return localStorage.getItem("blockFinishTime") || getCurrentTime();
}
function getCurrentTime() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment