Skip to content
Snippets Groups Projects
Commit 5d99eb0b authored by Luc Everse's avatar Luc Everse :passport_control:
Browse files

Merge branch 'fix-fresh-login' into 'development'

Fix UI login failing without a prior login

See merge request !171
parents 5fed8e55 8ebabd66
No related branches found
No related tags found
2 merge requests!175Release v2.4.0,!171Fix UI login failing without a prior login
Pipeline #608508 passed
......@@ -65,7 +65,7 @@ export default class Client {
await this.logout();
}
const { data } = await this.http.post('/api/v1/user/login', { username, password });
const { data } = await this.http.post('/api/v1/user/login', { username, password }, true);
const newToken = new Token(data.token, data.expiry);
await this.config.authProvider.setToken(newToken);
return newToken;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment