gbowne1/reactsocialnetwork

[Bug]: Login issue where the password field does not initially accept the 8 characters

Open

#229 opened on May 25, 2023

 (10 comments) (0 reactions) (0 assignees)JavaScript (60 forks)auto 404
backendbugdevopsgood first issuehelp wantedhigh-prioritymedium-complexitytech-debt

Repository metrics

Stars
 (46 stars)
PR merge metrics
 (PR metrics pending)

Description

Describe the Bug

This may or may not be a thing, but I am getting a minor bug where I am entering the test user's credentials.

Initially when I enter the password, it doesn't like to accept the password and I get the red border and it says Password must be 8 characters, and in this case the test users' password is totally 10 characters long.

This happens Especially if I use the test user's saved creds from the browser.

This also is sometimes intermittent. It works totally if I have been to the page before.

I have to go click on Login for it to actually recognize the 10 character password as the right length.

once the user gets to the 8th ~ 9th character in their entry the field the red border and warning should dissapear as well as not immediately appear when using a saved item.

As you can see in the screen shot, there is totally 10 characters and the border/warning still appears.

Steps to Reproduce

Start the development server by

cd to /client run npm start

and in another terminal cd to /server

wait for the dev server to start.

Get to the login screen and try entering the test users' creds. you should see the screenshot below.

Screenshots

Screenshot 2023-05-25 at 15-24-43 React Social Media App

Which device are you using?

Linux VM Server

Which operating system are you using?

Linux x64, Debian Base

Which browser are you using?

Firefox 112

Additional Context

No response

Contribute

  • I am willing to contribute and submit a pull request

Contributor guide