This commit is contained in:
tiago.kayaya
2021-06-25 12:31:25 +01:00
parent 95a390e60d
commit a13d4325cc
3 changed files with 6 additions and 5 deletions
+2 -1
View File
@@ -41,7 +41,8 @@ export class AuthService {
async login(user: UserForm): Promise<boolean> {
user.BasicAuthKey = 'Basic ' + btoa(user.username + '@' + user.domainName + ':' + user.password); //conversão em base64 das credenciais inseridas
//user.BasicAuthKey = 'Basic ' + btoa(user.username + '@' + user.domainName + ':' + user.password);
user.BasicAuthKey = 'Basic ' + btoa(user.username + ':' + user.password); //conversão em base64 das credenciais inseridas
const options = { headers: {'Authorization': user.BasicAuthKey }};