This commit is contained in:
tiago.kayaya
2021-05-28 16:17:08 +01:00
+7 -8
View File
@@ -38,8 +38,9 @@ export class PinPage implements OnInit {
async save() {
if(this.code.length == 4) {
this.successMessage()
this.close()
//this.successMessage()
const code = this.code.join('')
const encrypted = crypto.SHA1(code)
@@ -64,16 +65,13 @@ export class PinPage implements OnInit {
modal.present()
setTimeout(()=>{
this.close()
modal.dismiss()
},3000)
modal.dismiss()
}
async badRequest(message?: string) {
const modal = await this.modalController.create({
let modal = await this.modalController.create({
component: BadRequestComponent,
componentProps: {
message: message || 'Processo não efetuado' ,
@@ -84,6 +82,7 @@ export class PinPage implements OnInit {
modal.present()
setTimeout(()=>{
this.close()
modal.dismiss()
},3000)
}