This commit is contained in:
Peter Maquiran
2021-05-28 14:41:56 +01:00
parent 9528bdbb08
commit 3855dedb66
10 changed files with 259 additions and 55 deletions
@@ -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>
+21 -17
View File
@@ -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()