Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug where username validation function returns True even when it starts with a non-ascii character #34089

Open
Mys7erio opened this issue Nov 29, 2023 · 0 comments

Comments

@Mys7erio
Copy link

Expected Behavior

Should return False if the username starts with a non-ascii character

Actual Behavior

Returns True even if the username starts with a non-ascii character such as a period (.)

Steps to Reproduce the Problem

  1. Add the following line at the end of the script: print(validate_user(".blue.kale", 3))
  2. Run the script using python3 [script_name].py
  3. Output: True

Specifications

  • Version: Python 3.9.2
  • Platform: Linux linux-instance 5.10.0-26-cloud-amd64 #1 SMP Debian 5.10.197-1 (2023-09-29) x86_64 GNU/Linux
Mohamed-Elmanzalawi added a commit to Mohamed-Elmanzalawi/it-cert-automation-practice that referenced this issue Dec 6, 2023
Updated validations.py python script.
Fixed the behavior of validate_user function in validations.py.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant