mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
network security setup to clear text in gabinetedigital.local domain
This commit is contained in:
@@ -23,7 +23,6 @@ export class AuthService {
|
||||
public ValidatedUser:User;
|
||||
|
||||
async login(user: User): Promise<boolean> {
|
||||
user.domainName = environment.domain;
|
||||
user.BasicAuthKey = 'Basic ' + btoa(user.domainName + '\\' + user.username + ':' + user.password); //conversão em base64 das credenciais inseridas
|
||||
|
||||
const options = { headers: {'Authorization': user.BasicAuthKey }};
|
||||
@@ -31,11 +30,7 @@ export class AuthService {
|
||||
|
||||
let result: boolean | PromiseLike<boolean>;
|
||||
|
||||
try {
|
||||
result = await this.http.get<boolean>(service, options).toPromise();
|
||||
} catch(e) {
|
||||
result = false;
|
||||
}
|
||||
result = await this.http.get<boolean>(service, options).toPromise();
|
||||
|
||||
if (result)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user