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

Release #67

Merged
merged 5 commits into from
Oct 4, 2023
Merged

Release #67

merged 5 commits into from
Oct 4, 2023

Conversation

Kenny2github
Copy link
Contributor

Release needed to hotfix #65

Kenny2github and others added 5 commits November 22, 2021 20:35
Closes #57

+sql/cased_usernames.sql:
+ Add user_name_cased column with the same type as user_name except it
  allows NULL. NULL values will be filled in on database update.

includes/common/:

db.php:
* saveUser is now strictly assumed to take the case-sensitive username
  as input. Previously it didn't truly matter.
* getUserBy* now return the cased username as well

login.php:
* Refactor the code that actually gets the user from the API and saves
  it to the DB into SOA2Login::api

users.php:
* getName now returns the CASED username by default, but can be told
  to return the lowercase one via a new parameter

hooks.php:
+ Add the user_name_cased column via the SQL file
+ Run SOA2Login::api on every row with a NULL cased username
includes/common/hooks.php:
* The proper way to do it is apparently addExtensionUpdate
* I forgot that namespaces are a thing that affect things
+ Log the fetching of usernames
Include cased usernames in database
@Kenny2github Kenny2github merged commit bce78f1 into master Oct 4, 2023
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 this pull request may close these issues.

2 participants