Skip to content
This repository was archived by the owner on Feb 28, 2018. It is now read-only.
This repository was archived by the owner on Feb 28, 2018. It is now read-only.

Only works if loaded at initial mount #27

@alexmcmillan

Description

@alexmcmillan

I have a <Login /> component that uses this library but is only rendered if the user makes a request without being authorized.

If a new user arrives, this is mounted and rendered immediately and all works fine.

If, however, a user arrives with an existing valid session then this component is not mounted initially. If they then log out (or server invalidates session) then the <Login /> component is mounted and rendered. In this case, the <InputPassword /> component does not update the zxcvbn score.

I believe the problem is that the window load event occurred long ago, so the request to retrieve the zxcvbn library is not being executed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions