This commit is contained in:
tiago.kayaya
2022-02-08 16:37:32 +01:00
parent 0c01cb1ebc
commit b169ff5687
4 changed files with 18 additions and 18 deletions
+10 -10
View File
@@ -36,11 +36,11 @@ export class InactivityPage implements OnInit {
loop = false
ngOnInit() {
// window.addEventListener('resize', (event) => {
// if(this.router.url != '/login') return false
// if(this.loop == false) {
// this.loop = true
// this.runloop()
@@ -54,7 +54,7 @@ export class InactivityPage implements OnInit {
// const containerHeight = 651
// let circleHeight = document.querySelector('.circle')['offsetHeight']
// let circleWidth = document.querySelector('.circle')['offsetWidth']
// let circleWidth = document.querySelector('.circle')['offsetWidth']
// console.log(window.innerHeight, ' < ', containerHeight)
// console.log(circleHeight)
@@ -64,7 +64,7 @@ export class InactivityPage implements OnInit {
// e['style']['width'] = (circleWidth -1 )+'px'
// })
// if( window.innerHeight< containerHeight) {
// setTimeout(()=>{
// this.runloop()
@@ -114,14 +114,14 @@ export class InactivityPage implements OnInit {
let attempt = await this.authService.login(this.userattempt, {saveSession: false})
if (attempt) {
// if current attemp is equal to the current user
if (attempt.UserId == SessionStore.user.UserId) {
await this.authService.SetSession(attempt, this.userattempt);
this.authService.loginChat(this.userattempt);
this.authService.loginChat();
this.getToken();
SessionStore.setInativity(true)
this.goback()
} else {
SessionStore.delete()
@@ -174,10 +174,10 @@ export class InactivityPage implements OnInit {
const code = this.code.join('')
if( SessionStore.validatePin(code)) {
SessionStore.setInativity(true)
this.goback()
setTimeout(()=>{
this.clearCode()
}, 1000)
@@ -196,7 +196,7 @@ export class InactivityPage implements OnInit {
} else {
this.router.navigate(['/home/events'], {replaceUrl: true});
}
}
storePin() {