hexlet-correction icon indicating copy to clipboard operation
hexlet-correction copied to clipboard

Bug: When trying to log in to a account with an invalid password, no error appears

Open Alena007S opened this issue 1 year ago • 2 comments

Summary

When trying to log in to a account with an invalid password, no error appears. This issue is about CORS error on widget

Reproduction steps

1. open the login page https://hexlet-correction.herokuapp.com/login?error
2. Enter the correct Email
3. Enter incorrect Password
4. Press Login button

Expected result

Login was not successful. The message "Bad credentials" appears

Actual result

Login was not successful. But the message error does not appear 147

Browsers

Chrome

OS

Windows

Alena007S avatar Aug 12 '24 17:08 Alena007S

Hi. Actually the “bad credential” image page gets in, but because “invalid-feedback” is applied strangely on the form there is no display (I'm not good at bootstrap css, but it seems to be the case). I suggest not to remake the login page under invalid-feedback, but to return a working bootstrap alert message in the danger style. Especially this error indicates novalid password OR/AND email, so I think this would be a good solution. It will look like this image

What do you think?

sergi-Jr avatar Sep 20 '24 13:09 sergi-Jr

Hi. Actually the “bad credential” image page gets in, but because “invalid-feedback” is applied strangely on the form there is no display (I'm not good at bootstrap css, but it seems to be the case). I suggest not to remake the login page under invalid-feedback, but to return a working bootstrap alert message in the danger style. Especially this error indicates novalid password OR/AND email, so I think this would be a good solution. It will look like this image

What do you think?

Ok, looks good, i'll try fix it

Ovsenka avatar Sep 21 '24 20:09 Ovsenka