UCSD / campus-mobile

Mobile App for Campus
MIT License
60 stars 99 forks source link

Display Username Capitalization and Trailing Char Fix #2027

Open tkiyohar opened 6 months ago

tkiyohar commented 6 months ago

Summary

Fixes the in-app SSO username error where acceptable usernames with trailing characters or random capitalization are displayed as such. See photos below of examples:

drawing drawing drawing

Changelog

[General] [Fix] - reformats displayed username in app without trailing character and uniform capitalization.

Test Plan

Sign in and out on the profile page using random capitalization and by entering a space followed by any random strings of characters after your UCSD email address. The app should still log you in if you have trailing characters/weird capitalization (this is an attribute/bug of SSO and not something for us to fix) but should now display your username or email in lowercase without any random trailing characters (Note: app will prevent you from logging in if you do a string of random characters after your username rather than your email).