Skip to content

Commit

Permalink
Merge pull request #1896 from NYPL-Simplified/qa
Browse files Browse the repository at this point in the history
Deploy 4.1.5
  • Loading branch information
keithbauer authored May 31, 2023
2 parents 8fbce7c + 8d7d989 commit dbbe446
Show file tree
Hide file tree
Showing 4 changed files with 617 additions and 535 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
.vscode/
.idea/

# Environments
.venv/

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
2 changes: 2 additions & 0 deletions api/authenticator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2520,6 +2520,7 @@ def oauth_callback(self, _db, code):
patron, is_new = patrondata.get_or_create_patron(
_db, self.library_id, analytics=self.analytics
)
patrondata.is_new = is_new

# Create a credential for the Patron.
credential, is_new = self.create_token(_db, patron, token)
Expand Down Expand Up @@ -2701,6 +2702,7 @@ def oauth_authentication_callback(self, _db, params):
access_token=simplified_token,
patron_info=patron_info,
root_lane=root_lane,
is_new=patrondata.is_new,
)
return redirect(client_redirect_uri + "#" + urllib.parse.urlencode(params))

Expand Down
Loading

0 comments on commit dbbe446

Please sign in to comment.