а еще кажется, у вас login страница гвардом закрыта
async canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) {
const user = this.authStorageService.getUserFromToken();
if (user) {
return false;
}
return true;
}
async canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise<boolean> {
return this.authStorageService.getUserFromToken().pipe(map(t => !!t));
}
const user = await this.authStorageService.getUserFromToken();
/**
* @Route("app/{bot}/settings", requirements={"page"="\d+"})
*/
/app/{bot}/settings/
/app/profile/settings
monolog:
handlers:
main:
type: fingers_crossed
action_level: error
handler: nested
excluded_http_codes: [404, 405]
buffer_size: 50 # How many messages should be saved? Prevent memory leaks
nested:
type: stream
path: php://stderr
level: debug
formatter: monolog.formatter.json
console:
type: console
process_psr_3_messages: false
channels: ["!event", "!doctrine"]
file_log:
type: stream
# log to var/log/(environment).log
path: "%kernel.logs_dir%/%kernel.environment%.log"
# log *all* messages (debug is lowest level)
level: debug