mirror of
https://github.com/MikroWizard/mikrofront.git
synced 2025-07-30 15:54:35 +02:00
improved Backup viewer and highlight fix with huge files(replace with highlightjs)
login page Errors improved, Added User disable option, Some Pro features and updates
This commit is contained in:
parent
0d6bdabcbc
commit
d6276f7246
26 changed files with 1761 additions and 98 deletions
|
@ -110,7 +110,6 @@ export class MikroWizardProvider {
|
|||
}
|
||||
public sendRequestauth(url: string, params: Object){
|
||||
let body = this.buildRequest(url, params);
|
||||
console.dir(body);
|
||||
return this.http.post(this.MikroWizard_server + url, body, {observe: "response",headers: this.headers,withCredentials:true});
|
||||
}
|
||||
public sendRequest(url: string, params: Object): Promise<any> {
|
||||
|
@ -164,7 +163,7 @@ export class MikroWizardProvider {
|
|||
username : login,
|
||||
password : password,
|
||||
// token: token,
|
||||
ga: ga
|
||||
otp: ga
|
||||
};
|
||||
let $this = this;
|
||||
return this.sendRequest("/api/login", params);
|
||||
|
@ -172,9 +171,6 @@ export class MikroWizardProvider {
|
|||
|
||||
public isLoggedIn() {
|
||||
return this.getSessionInfo().then(function(result: any) {
|
||||
// console.dir("result");
|
||||
console.dir(result);
|
||||
// return true;
|
||||
if ( "uid" in result === false ) return false;
|
||||
else return true;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue