Fixe basicAuthKey

This commit is contained in:
Peter Maquiran
2021-05-10 15:31:16 +01:00
parent 58f7b2b92e
commit 6cd051ea6e
+2 -1
View File
@@ -24,7 +24,7 @@ export class AuthService {
private storageService:StorageService, private storageService:StorageService,
private router:Router private router:Router
) { ) {
this.headers = new HttpHeaders(); this.headers = new HttpHeaders();
if (localStorage.getItem("user") != null) { if (localStorage.getItem("user") != null) {
@@ -54,6 +54,7 @@ export class AuthService {
console.log(response) console.log(response)
if (result) { if (result) {
response.BasicAuthKey = user.BasicAuthKey
this.ValidatedUser = response; this.ValidatedUser = response;
localStorage.setItem('user', JSON.stringify(response)); localStorage.setItem('user', JSON.stringify(response));