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 in username validation function #34156

Open
Mohamed-Elmanzalawi opened this issue Dec 6, 2023 · 0 comments · May be fixed by #34157
Open

Fix bug in username validation function #34156

Mohamed-Elmanzalawi opened this issue Dec 6, 2023 · 0 comments · May be fixed by #34157

Comments

@Mohamed-Elmanzalawi
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

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

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.
@Mohamed-Elmanzalawi Mohamed-Elmanzalawi linked a pull request Dec 6, 2023 that will close this issue
1 task
Mohamed-Elmanzalawi added a commit to Mohamed-Elmanzalawi/it-cert-automation-practice that referenced this issue Dec 6, 2023
 Tests pass
Mohamed-Elmanzalawi added a commit to Mohamed-Elmanzalawi/it-cert-automation-practice that referenced this issue Dec 6, 2023
 Tests pass
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