You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had to change the following code in autorizeUser in authorization.js in order to login in:
from:
RetrieveMessages(function(){
if(data[2] === "1")
{
this is a temporary password, let the user change it.
view.router.loadPage('resetpassword.html');
} else {
storage.setItem("login","true");
view.router.loadPage('menu.html');
}
});
to:
RetrieveMessages();
if (data[2] === "1") {
//this is a temporary password, let the user change it.
view.router.loadPage('resetpassword.html');
} else {
storage.setItem("login","true");
view.router.loadPage('menu.html');
}
I am not sure where went wrong and why in this case you used the page-turning part as input to RetrieveMessages function.
The text was updated successfully, but these errors were encountered:
Did you update the database with the new 'messages' table?
The reason it is like the first block of code is to make sure the information collection from the database happens before we allow the user to take other actions.
In how you changed it now, the message will be retrieved at the same time as that you send the user to the menu page. If the user is fast and the message retrieval slow, this might cause problems if the user, for example, instantly goes to the messages page.
I had to change the following code in autorizeUser in authorization.js in order to login in:
from:
RetrieveMessages(function(){
if(data[2] === "1")
{
this is a temporary password, let the user change it.
view.router.loadPage('resetpassword.html');
} else {
storage.setItem("login","true");
view.router.loadPage('menu.html');
}
});
to:
RetrieveMessages();
if (data[2] === "1") {
//this is a temporary password, let the user change it.
view.router.loadPage('resetpassword.html');
} else {
storage.setItem("login","true");
view.router.loadPage('menu.html');
}
I am not sure where went wrong and why in this case you used the page-turning part as input to RetrieveMessages function.
The text was updated successfully, but these errors were encountered: