mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Improve
This commit is contained in:
@@ -55,9 +55,14 @@
|
||||
|
||||
</div>
|
||||
|
||||
<div class="voltar d-flex align-center justify-center pt-25 clear" (click)="pin=!pin">
|
||||
Voltar
|
||||
<div *ngIf="!setPint" class="voltar d-flex align-center justify-center pt-25 clear" (click)="pin=!pin">
|
||||
Entrar com senha
|
||||
</div>
|
||||
|
||||
<div *ngIf="setPint" class="voltar d-flex align-center justify-center pt-25 clear" (click)="pin=!pin">
|
||||
Limpar
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -163,6 +163,7 @@ export class LoginPage implements OnInit {
|
||||
}
|
||||
|
||||
storePin() {
|
||||
|
||||
const code = this.code.join('')
|
||||
const encrypted = crypto.SHA1(code)
|
||||
|
||||
|
||||
@@ -29,15 +29,15 @@
|
||||
|
||||
<ion-row>
|
||||
<ion-col class="align-center d-flex">
|
||||
<div (click)="addPin()" class="d-flex align-center">
|
||||
<ion-checkbox class="checkBox"></ion-checkbox>
|
||||
<div class="d-flex align-center">
|
||||
<ion-checkbox (ionChange)="LoginPreference('pin')" class="checkBox" ></ion-checkbox>
|
||||
PIN
|
||||
</div>
|
||||
|
||||
</ion-col>
|
||||
<ion-col class="align-center d-flex">
|
||||
<div (click)="addFingerprint()" class="d-flex align-center">
|
||||
<ion-checkbox class="checkBox"></ion-checkbox>
|
||||
<ion-checkbox (ionChange)="LoginPreference('pin')" class="checkBox"></ion-checkbox>
|
||||
Impressão Digital
|
||||
</div>
|
||||
</ion-col>
|
||||
@@ -55,7 +55,7 @@
|
||||
</div>
|
||||
|
||||
<div class="d-flex justify-center mt-10">
|
||||
<ion-button class="btn-ok buttonSize" fill="clear" color="#fff" >
|
||||
<ion-button (click)="addPin()" class="btn-ok buttonSize" fill="clear" color="#fff" >
|
||||
<ion-label>Alterar PIN</ion-label>
|
||||
</ion-button>
|
||||
</div>
|
||||
|
||||
@@ -110,5 +110,15 @@ export class ProfileComponent implements OnInit {
|
||||
this.router.navigate(['/']);
|
||||
}
|
||||
|
||||
LoginPreference(type: string) {
|
||||
|
||||
let userData = JSON.parse(localStorage.getItem('UserData'))
|
||||
|
||||
userData.loginPreference = type
|
||||
|
||||
localStorage.setItem('UserData', JSON.stringify(userData) )
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
</div>
|
||||
|
||||
<div (click)="close()" class="d-flex align-center justify-center pt-25 clear">
|
||||
Voltar
|
||||
Cancelar
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user