Skip to content
Snippets Groups Projects
Verified Commit 8f770652 authored by Alex ORLUC's avatar Alex ORLUC
Browse files

remove console.log

parent 61b3cfc5
No related branches found
No related tags found
No related merge requests found
......@@ -377,7 +377,6 @@ export class ProfileComponent implements OnInit {
}*/
if (this.usersRest.length === 0) {
this.getPassRules();
this.http.get('../rest/users')
.subscribe((data: any) => {
this.usersRest = data.users;
......
......@@ -16,7 +16,6 @@ export class AuthGuard implements CanActivate {
canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) {
if (this.cookieService.check('maarchParapheurAuth')) {
console.log('Cookie ok !');
if (this.signaturesService.userLogged.id === undefined) {
const cookieInfo = JSON.parse(atob(this.cookieService.get('maarchParapheurAuth')));
this.http.get('../rest/users/' + cookieInfo.id)
......@@ -38,7 +37,6 @@ export class AuthGuard implements CanActivate {
return true;
}
} else {
console.log('auth failed !');
this.router.navigateByUrl('/login');
return false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment