This commit is contained in:
Peter Maquiran
2021-07-18 21:21:06 +01:00
parent d79d5fe858
commit 00883d04f7
3 changed files with 5 additions and 15 deletions
+2 -7
View File
@@ -212,13 +212,8 @@ export class LoginPage implements OnInit {
this.localstoreService.set('PIN', encrypted)
//
if(window['cy']) {
this.router.navigate(['/home/events']);
} else {
window.location.pathname = '/home/events'
}
this.router.navigate(['/home/events']);
}
}
@@ -115,7 +115,7 @@ export class ProfileComponent implements OnInit {
logout() {
// clear local storage
window.localStorage.clear();
this.router.navigate(['/']);
window.location.pathname = '/home/events'
}
LoginPreferenceMethod(type: string) {
+2 -7
View File
@@ -6,16 +6,11 @@ import { AES, enc, SHA1 } from 'crypto-js'
})
export class LocalstoreService {
private prefix = 'v0-'
private prefix = 'v6-'
constructor() {
const key = SHA1('version').toString()
const version = this.prefix.charAt(1)
if(this.get(key, false)) {
// alert('new Update')
}
this.set(key, this.prefix)
}