Skip to content

[CMS v1.1.0] Login screen is incomplete and has security vulnerability #6

@zaarheed

Description

@zaarheed

The constructor has this logic:

if (localStorage.getItem('login')) {
    this.router.navigate(['dashboard']);
}

This is a security vulnerability. It should be checking the validity of the token. Also, this logic belongs on a RouteGuard, because currently the user sees the login screen briefly before being redirected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions