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

POST /api/v1/users/{id}/access_tokens doesn't respect id #3396

Closed
haohanyang opened this issue May 18, 2024 · 1 comment
Closed

POST /api/v1/users/{id}/access_tokens doesn't respect id #3396

haohanyang opened this issue May 18, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@haohanyang
Copy link

Describe the bug

Calling POST /api/v1/users/{id}/access_tokens to create an access token for user {id} using admin's token, will create token for admin instead of user {id}

Steps to reproduce

  1. Create admin account, user id 1
  2. Create a normal user, user id 2
  3. Call POST /api/v1/users/2/access_tokens using user 1(admin)'s access token. A new token is created for user 1(admin) instead of user2

The version of Memos you're using

0.22

Screenshots or additional context

No response

@haohanyang haohanyang added the bug Something isn't working label May 18, 2024
@boojack
Copy link
Collaborator

boojack commented May 20, 2024

Updated with f37b345

@boojack boojack closed this as completed May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants