This commit is contained in:
Peter Maquiran
2021-09-28 11:31:10 +01:00
parent 9e21bdb452
commit c2243c8029
13 changed files with 171 additions and 21 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ export class AuthService {
async login(user: UserForm, {saveSession = true}): Promise<LoginUserRespose> {
user.BasicAuthKey = 'Basic ' + btoa(user.username + ':' + this.aesencrypt.encrypt(user.password,user.username ));
this.headers = this.headers.set('Authorization',user.BasicAuthKey);
this.headers = this.headers.set('Authorization', user.BasicAuthKey);
this.opts = {
headers: this.headers,
}