0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00
verdaccio/test
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
..
e2e feat: replace chalk with kleur (#1289) @DanielRuf 2019-04-29 08:44:29 +02:00
flow/plugins feat: package version gets sent to plugins 2019-01-14 17:17:37 +02:00
functional feat: update readme v4 (#1312) 2019-05-17 08:03:58 -07:00
lib chore: fix #1292 add missing dependencies 2019-05-09 23:41:16 +02:00
types refactor: functional testing 2018-06-23 20:57:16 +02:00
unit fix(api): force authenticate on login (#1347) 2019-06-13 06:58:43 +02:00
.eslintrc chore: jest/expect-expect disabled 2018-12-16 19:05:52 +01:00
jest.config.e2e.js refactor: get rid of jest warnings 2018-06-27 08:52:52 +02:00
jest.config.functional.js refactor: get rid of jest warnings 2018-06-27 08:52:52 +02:00
test.conf.js refactor: add more constants 2018-06-26 06:15:09 +02:00