mirror of
https://github.com/koel/koel
synced 2024-11-10 14:44:13 +00:00
Fix login URL regex
This commit is contained in:
parent
2f0d0dc042
commit
77fa77081d
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ export const http = {
|
|||
NProgress.done();
|
||||
|
||||
if (r.status === 400 || r.status === 401) {
|
||||
if (!(settings.method === 'POST' && /\/api\/me\/?/.test(settings.url))) {
|
||||
if (!(settings.method === 'POST' && /\/api\/me\/?$/.test(settings.url))) {
|
||||
// This is not a failed login. Log out then.
|
||||
event.emit('logout');
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue