Skip to content

Commit

Permalink
oauth profile now correctly recognizes deactivated token
Browse files Browse the repository at this point in the history
  • Loading branch information
cslzchen committed Jul 23, 2019
1 parent a6a1104 commit 13ae50d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func OAuth(c echo.Context) error {
ON django_content_type.id = osf_guid.content_type_id AND object_id = osf_osfuser.id
JOIN osf_apioauth2personaltoken
ON osf_osfuser.id = osf_apioauth2personaltoken.owner_id
WHERE osf_apioauth2personaltoken.token_id = $1
WHERE osf_apioauth2personaltoken.token_id = $1 AND osf_apioauth2personaltoken.is_active
`
err := DatabaseConnection.QueryRow(queryString, tokenId).Scan(&result.Id, &result.Username, &result.GivenName, &result.FamilyName)
if err != nil {
Expand Down

0 comments on commit 13ae50d

Please sign in to comment.