This commit is contained in:
tiago.kayaya
2021-01-25 11:32:51 +01:00
parent 339990d19a
commit 6f7f71727f
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ export class AuthService {
public ValidatedUser:User;
async login(user: User): Promise<boolean> {
user.BasicAuthKey = 'Basic ' + btoa(user.domainName + '\\' + user.username + ':' + user.password); //conversão em base64 das credenciais inseridas
user.BasicAuthKey = 'Basic ' + btoa(user.username + '@' + user.domainName + ':' + user.password); //conversão em base64 das credenciais inseridas
const options = { headers: {'Authorization': user.BasicAuthKey }};
this.headers = this.headers.set('Authorization',user.BasicAuthKey);