1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-13 03:35:52 +01:00
verdaccio/test/unit
Juan Picado @jotadeveloper 85c1bd1f76
fix(api): force authenticate on login (#1347)
When a user has a valid token and tries to login with other credentials the endpoint returns 201.

The reason was if another user logged previously and had a valid token stored in the terminal. We must authenticate any user that tries to log in even if the token stored is valid.

We must check credentials again and return a new token, if the credentials are wrong we reject the login. Furthermore, the new token will update the list of groups.
2019-06-13 06:58:43 +02:00
..
api fix(api): force authenticate on login (#1347) 2019-06-13 06:58:43 +02:00
functionalLibs refactor: replace all 404 with NOT_FOUND constant (#1050) 2018-10-05 08:20:43 +02:00
partials feat: update readme v4 (#1312) 2019-05-17 08:03:58 -07:00
__helper.js feat: add support for jwt on api (#896) 2018-08-21 08:05:34 +02:00
empty.js refactor: <Package /> , <Footer /> and package sidebar code refactoring 2018-07-22 21:22:51 +02:00