You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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".
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.
The text was updated successfully, but these errors were encountered:
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
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:
Actual Behaviour
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.
The text was updated successfully, but these errors were encountered: