mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 21:35:50 +00:00
Fix
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user