-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
🐛 Issue: Username Validation in Account Creation #1446
Comments
Please assign this issue to me |
@Harsh1t-coder you are assigned. Try to understand the whole codebase and work accordingly.
Create PR as soon as possible otherwise I have to give anyone else opportunity.
|
Hey @Harsh1t-coder Confirm me whether you are working or not? |
Hello @mdazfar2 , i have started working, will raise the PR soon :) |
Hey @mdazfar2 , i have made the required changes but i couldn't test locally as it gives error after entering email id in signup, can you please help me how can i proceed with testing? or should i directly create pull request? |
@Harsh1t-coder Did you fill in the environment variables? Set the environment variables, then run and check the sign-in. |
@mdazfar2 , do i have to fill all this information? MONGO_URI=Your_Mongo_Uri |
Yes @Harsh1t-coder you have to fill all these for running the backend part. |
yes @mdazfar2 , i am working first time on this, thanks for the help. i can access now. currently in testing phase |
Great @Harsh1t-coder good to hear. |
@Harsh1t-coder If you create an account on the deployed website, please use your existing email to receive the OTP for the next step. |
@mdazfar2 , Looks good? |
@mdazfar2 if user will try to enter spaces it will show the 1 screenshot error. |
@Harsh1t-coder send me the demo video |
@Harsh1t-coder If you can’t do it, let me know, and I’ll assign this issue to someone else. Please don’t be discouraged; I really appreciate your enthusiasm and hard work on this project. What you’ve done so far wouldn’t have been possible for others. |
@mdazfar2 , thanks for your concern but testing has been completed , its working fine. Uploading the video |
@mdazfar2 , Sign In with Google |
@mdazfar2 , sign up with email: Produce_1.mp4 |
@Harsh1t-coder You are not understanding what exactly we want to update. Please read the issue first. What you have done is good, but it addresses the second part of the issue, for existing users. The main issue is that an account can be created with spaces in the username. You still don't seem to understand what the issue is exactly about. |
@mdazfar2 , No one can create username with space now, this has been fixed as well. |
@mdazfar2 , both the issues has been fixed. Please check the given video and screenshots |
Try to put anything put in username field with spaces and click on create account, and then give me a screenshot |
@mdazfar2 , user can't insert spaces it will give an error after presing space or tab. so there is no need to click on create account for getting an error. |
Alright create PR I'll look into it |
Okay, thanks |
@mdazfar2 , i have created a pull request. please let me know if there are any feedbacks or improvements that i should keep in mind for my journey ahead. thanks a lot :) |
#1446 Issue: Username Validation in Account Creation
Description
We have identified an issue in the account creation process on HelpOps-Hub. Currently, when users create an account on our website, the username field appears at the end. If the user enters a username with spaces, it is accepted, which is not ideal for a username.
Suppose I create an account on the website and reach the username field at the end; if I enter a name with spaces (e.g.,
azfar alam
), it is currently accepted.I want a validation or alert message to appear when the user enters a name with spaces, prompting them not to include spaces, similar to Instagram, GitHub, and other websites.
which username will be accepted --> (e.g.,
mdazfar2
,rahul_saini
,anyname_without-space02
)Note
If you are entering the same username which has created by someone else then it should not acceptable.
Screenshot 1 - Create account with gmail and OTP
Screenshot 2 - Create account with Google or GitHub (providers)
💡 Expected Behavior
No Spaces in Username: Display an alert message if a user attempts to add spaces in their username. The message should clearly indicate:
Check for Existing Usernames: If the entered username is already taken, prompt a message:
🤔 Additional Context
This issue will enhance the user experience by preventing invalid usernames from being submitted and ensuring each username is unique. We encourage contributors to follow best practices for validation, alerts, and UI consistency.
Note
You will receive a level 3 label for the GSSoC-Ext leaderboard points after the pull request for this issue is merged.
Checklist
The text was updated successfully, but these errors were encountered: