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

No API Key assigned to this User #287

Closed
1 of 2 tasks
jjuanchini opened this issue Dec 12, 2019 · 1 comment
Closed
1 of 2 tasks

No API Key assigned to this User #287

jjuanchini opened this issue Dec 12, 2019 · 1 comment

Comments

@jjuanchini
Copy link

Is this a BUG REPORT or FEATURE REQUEST?:

  • BUG
  • FEATURE

What happened:
I'm trying to login with a user in the mobile version, and I'm getting "No API Key assigned to this User". If I use the user created while installation process, it works great.

What did you expect to happen:
Log any user in the mobile version

How to reproduce it (as minimally and precisely as possible):
Create a user as an Admin, and try to login in the mobile version with the new user.

Anything else we need to know?:

I'm seeing the code, and the mobile version is using the API v1 for login, and getUserByUsername is not returning an accessToken when the user is not the original admin.

the desktop version is working well (I guess because it's using the API v2)

Environment:

  • Trudesk Version: 1.0.17
  • OS (e.g. from /etc/os-release): macOS 10.14.6
  • Node.JS Version: v13.2.0
  • MongoDB Version: mongod version: 3.6.12 (MMAPv1) (heroku plugin)
  • Is this hosted on cloud.trudesk.io: No (heroku)
@polonel
Copy link
Owner

polonel commented Dec 14, 2019

If the user logs into the web app one time and goes to the Profile section, from there they can generate an API key.

polonel added a commit that referenced this issue Dec 23, 2019
# [1.1.0](v1.0.17...v1.1.0) (2019-12-23)

### Bug Fixes

* **accounts:** api key generated by default on creation. [#287](#287) ([1f9291e](1f9291e))
* **reports:** invalid group reporting. [#290](#290) ([faa25b3](faa25b3))

### Features

* **tickets:** allow agents to submit tickets on behalf of user [#252](#252) ([9ec8293](9ec8293))
@polonel polonel closed this as completed Dec 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants