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

Bug : Name Capitalisation Inconsistency #119

Closed
Alpha17-2 opened this issue May 19, 2024 · 0 comments · Fixed by #126
Closed

Bug : Name Capitalisation Inconsistency #119

Alpha17-2 opened this issue May 19, 2024 · 0 comments · Fixed by #126
Assignees
Labels
bug Something isn't working

Comments

@Alpha17-2
Copy link
Collaborator

Description

There is an inconsistency in the way user names are stored in the database. When users sign up through the standard sign-up process, their names are capitalised correctly (i.e., the first character of each word is capitalised). However, when users sign up using their Gmail account, their names are not capitalised properly. This results in an inconsistency in the database pattern for names.

Steps to Reproduce

  1. Sign up using the standard sign-up form.
    • Enter a name with all lowercase letters (e.g., "john doe").
    • Observe that the name is stored in the database as "John Doe".
  2. Sign up using a Gmail account.
    • Use a Gmail account with a name in all lowercase letters (e.g., "jane smith").
    • Observe that the name is stored in the database as "jane smith".

Expected Behavior

The name should be stored in the database with the first character of each word capitalized, regardless of the sign-up method. For example:

  • "john doe" -> "John Doe"
  • "jane smith" -> "Jane Smith"

Actual Behaviour

  • Standard sign-up: Names are correctly capitalized (e.g., "John Doe").
  • Gmail sign-up: Names are not capitalized (e.g., "jane smith").

Impact

This inconsistency affects the uniformity of the data in the database and can lead to issues with displaying user names correctly in the application.

Suggested Fix

Ensure that the name capitalisation logic is applied to names retrieved from Gmail accounts during the sign-up process. This can be achieved by adding a function to capitalize the first character of each word in the name before saving it to the database.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants