codebattle icon indicating copy to clipboard operation
codebattle copied to clipboard

Bug: Passwords consisting only of special characters are validated (no numbers) during registration.

Open Sofushkins opened this issue 1 month ago • 0 comments

Summary

According to the message when entering a password without special characters, the password must consist of numbers/letters + special characters. However, a password consisting ONLY of special characters passes validation and allows you to register.

Reproduction steps

1. Open the website https://codebattle.hexlet.io/
2. Click the Sign up button
3. Fill in the “Nickname” field. The value is “CutiePieLove5”
4. Fill in the “Email” field with the value “[email protected]”
5. Fill in the “Password” field. Value “!@#$%&*?”
6. Fill in the “Password Confirmation” field. Value “!@#$%&*?”
7. Click the Submit button

Expected result

Password does not pass validation The “Password” field is highlighted in red and an error message is displayed

Actual result

Registration successful User successfully registered

Browsers

Firefox

OS

Mac

Version: 4df7e60

Sofushkins avatar Nov 27 '25 12:11 Sofushkins