Skip to content

Commit

Permalink
fix: ensures field read access within login operation has id
Browse files Browse the repository at this point in the history
  • Loading branch information
JarrodMFlesch committed Oct 5, 2021
1 parent ffab6c4 commit e3229c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/auth/operations/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ async function login(incomingArgs: Arguments): Promise<Result> {
user = await this.performFieldOperations(collectionConfig, {
depth,
req,
id: user.id,
data: user,
hook: 'afterRead',
operation: 'login',
Expand Down

0 comments on commit e3229c5

Please sign in to comment.