mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
Add Pin
This commit is contained in:
@@ -13,10 +13,9 @@
|
||||
|
||||
<div class="terminal d-flex align-center justity-content-center flex-column">
|
||||
|
||||
<div (click)="login()">Login</div>
|
||||
|
||||
<div (click)="save()" class="pt-50 mt-50">Register</div>
|
||||
<div (click)="login()" class="dot">Login</div>
|
||||
|
||||
<div (click)="save()" class="pt-50 mt-50 dot">Register</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ import { Component, OnInit } from '@angular/core';
|
||||
import { ModalController } from '@ionic/angular';
|
||||
import { BadRequestComponent } from '../popover/bad-request/bad-request.component';
|
||||
import { SuccessMessageComponent } from '../popover/success-message/success-message.component';
|
||||
import { FingerprintAIO } from '@ionic-native/fingerprint-aio';
|
||||
// import { FingerprintAIO } from '@ionic-native/fingerprint-aio';
|
||||
|
||||
@Component({
|
||||
selector: 'app-fingerprint',
|
||||
@@ -20,24 +20,26 @@ export class FingerprintPage implements OnInit {
|
||||
}
|
||||
|
||||
login() {
|
||||
// this.faio.show({
|
||||
// clientId: 'Fingerprint-Demo',
|
||||
// clientSecret: 'password', //Only necessary for Android
|
||||
// disableBackup:true, //Only for Android(optional)
|
||||
// localizedFallbackTitle: 'Use Pin', //Only for iOS
|
||||
// localizedReason: 'Please authenticate' //Only for iOS
|
||||
// })
|
||||
// .then((FingerPrintHash: any) => {
|
||||
// console.log(FingerPrintHash)
|
||||
|
||||
// this.faio.show({
|
||||
// clientId: 'Fingerprint-Demo',
|
||||
// clientSecret: 'password', //Only necessary for Android
|
||||
// disableBackup:true, //Only for Android(optional)
|
||||
// localizedFallbackTitle: 'Use Pin', //Only for iOS
|
||||
// localizedReason: 'Please authenticate' //Only for iOS
|
||||
// })
|
||||
// .then((FingerPrintHash: any) => {
|
||||
// console.log(FingerPrintHash)
|
||||
|
||||
// const storedFinderPrint = localStorage.getItem('FingerPrintHash')
|
||||
// if(FingerPrintHash == storedFinderPrint) {
|
||||
// const storedFinderPrint = localStorage.getItem('FingerPrintHash')
|
||||
// if(FingerPrintHash == storedFinderPrint) {
|
||||
|
||||
// }
|
||||
// })
|
||||
// .catch((error: any) => {
|
||||
// console.log(error)
|
||||
// });
|
||||
// }
|
||||
|
||||
// })
|
||||
// .catch((error: any) => {
|
||||
// console.log(error)
|
||||
// });
|
||||
}
|
||||
|
||||
close() {
|
||||
@@ -55,8 +57,10 @@ export class FingerprintPage implements OnInit {
|
||||
// localizedReason: 'Please authenticate' //Only for iOS
|
||||
// })
|
||||
// .then((FingerPrintHash: any) => {
|
||||
|
||||
// this.successMessage()
|
||||
// localStorage.setItem('FingerPrintHash', FingerPrintHash)
|
||||
|
||||
// })
|
||||
// .catch((error: any) => {
|
||||
// this.badRequest()
|
||||
|
||||
Reference in New Issue
Block a user