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

Process add'l data on registration #911

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Commits on Sep 14, 2022

  1. Registration w/ addl data

    Updated registration endpoint for dbAuth to accomodate other posted registration data. 
    Also added some new dbAuth properties
    1. usernameMinLength : specify minimum length of username (5)
    2. usernameMaxLength : specify maximum length of username (40)
    3. usernamePattern : specify regex pattern for usernames ('/^[A-Za-z0-9]+$/') // defaults to alphanumeric chars only
    apps-caraga authored Sep 14, 2022
    Configuration menu
    Copy the full SHA
    1ee817f View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2022

  1. Minor formatting update

    Formatted section on setting up JWT authentication to make the list more readable
    apps-caraga authored Sep 15, 2022
    Configuration menu
    Copy the full SHA
    0f4e2b9 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #1 from apps-caraga/apps-caraga-patch-2

    Registration w/ addl data
    apps-caraga authored Sep 15, 2022
    Configuration menu
    Copy the full SHA
    045819c View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2022

  1. Updated readme (Add'l dbAuth properties)

    Added the dbAuth properties for checking minimum and maximum length of username as well as allowed characters.
    apps-caraga authored Sep 16, 2022
    Configuration menu
    Copy the full SHA
    57a761f View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2022

  1. Added workaround for duplicate key error

    Since we're processing additional data during registration, we need to check if these data were defined in db to be unique. 
    For example, email addresses are usually used just once in an application. We can query the database to check if the new email address is not yet registered, but, in some cases, we may more than 2 or 3 or more unique fields (not common, but possible), hence we would also need to query 2,3 or more times. 
    
    As a TEMPORARY WORKAROUND, we'll just attempt to register the new user and wait for the db to throw a DUPLICATE KEY EXCEPTION.
    apps-caraga authored Sep 17, 2022
    Configuration menu
    Copy the full SHA
    d5c63a6 View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2023

  1. Configuration menu
    Copy the full SHA
    5a447da View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2023

  1. Configuration menu
    Copy the full SHA
    c86eaf3 View commit details
    Browse the repository at this point in the history
  2. Option to update session data via /me end-point

    Changes
    $_SESSION['user']['updatedAt'] - set to time when the session was created/updated
    dbAuth.refreshSession - number of minutes after which the session data is refreshed when the /me end-point is called
    apps-caraga authored Mar 6, 2023
    Configuration menu
    Copy the full SHA
    17e30fe View commit details
    Browse the repository at this point in the history
  3. Merge pull request #2 from apps-caraga/apps-caraga-patch-2

    Option to update session data via /me end-point
    apps-caraga authored Mar 6, 2023
    Configuration menu
    Copy the full SHA
    f7061de View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2023

  1. Configuration menu
    Copy the full SHA
    372e36f View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2023

  1. Update DbAuthMiddleware.php

    Changes
    $usernamePattern - defaults  to  /^\p{L}+$/u , visible characters, no punctuation or numbers, unicode mode
    $usernameMaxLength - defaults to 255
    changed validation of other inputs from filter_validate()  to htmlspecialchars()
    fixed typos missing and extra $
    apps-caraga authored Apr 6, 2023
    Configuration menu
    Copy the full SHA
    a72fd8d View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2023

  1. Configuration menu
    Copy the full SHA
    2c20589 View commit details
    Browse the repository at this point in the history