mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
comment all capacitor code
This commit is contained in:
@@ -52,7 +52,7 @@ export class AuthService {
|
||||
if (result)
|
||||
{
|
||||
this.ValidatedUser = user;
|
||||
this.storageService.store(AuthConnstants.USER, response);
|
||||
//this.storageService.store(AuthConnstants.USER, response);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
@@ -70,29 +70,29 @@ export class AuthService {
|
||||
|
||||
//Get user data from RocketChat | global object
|
||||
getUserData(){
|
||||
this.storageService.get(AuthConnstants.AUTH).then(res=>{
|
||||
/* this.storageService.get(AuthConnstants.AUTH).then(res=>{
|
||||
this.userData$.next(res);
|
||||
});
|
||||
}); */
|
||||
}
|
||||
//Get user Id | global object
|
||||
getUserId(){
|
||||
this.storageService.get(AuthConnstants.USER).then(res=>{
|
||||
/* this.storageService.get(AuthConnstants.USER).then(res=>{
|
||||
this.userId$.next(res);
|
||||
});
|
||||
}); */
|
||||
}
|
||||
|
||||
getProfile(){
|
||||
this.storageService.get(AuthConnstants.PROFILE).then(res=>{
|
||||
/* this.storageService.get(AuthConnstants.PROFILE).then(res=>{
|
||||
return res;
|
||||
});
|
||||
}); */
|
||||
}
|
||||
|
||||
logoutChat(){
|
||||
//this.storageService.clear();
|
||||
this.storageService.removeStorageItem(AuthConnstants.AUTH).then(res =>{
|
||||
/* this.storageService.removeStorageItem(AuthConnstants.AUTH).then(res =>{
|
||||
this.userData$.next('');
|
||||
this.router.navigate(['']);
|
||||
})
|
||||
}) */
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user