Fix: User login on production.

This commit is contained in:
2024-11-21 08:21:51 +00:00
parent c40cc5a854
commit b955cfd1df
4 changed files with 102 additions and 65 deletions

View File

@@ -114,18 +114,12 @@ export default class BasePage {
hookupButtonsNavUserLogin() {
this.hookupEventHandler("click", '.' + flagNavUserLogin, (event, navigator) => {
event.stopPropagation();
// this.router.navigateToHash(hashPageUserLogin);
/*
let dataRequest = {};
dataRequest[flagCallback] = hashPageCurrent;
console.log('sending data to user login controller: ');
console.log(dataRequest);
*/
// let page = this;
this.leave();
API.loginUser()
.then((response) => {
if (response.Success) {
this.router.navigateToUrl(response[flagCallback], null, false); // window.app.
// this.router.navigateToUrl(response[flagCallback], null, false); // window.app.
window.location.href = response[flagCallback];
} else {
DOM.alertError("Error", response.Message);
}