fix login url with wrong ? #463

This commit is contained in:
Umputun
2019-11-05 12:45:06 -06:00
parent 95fa79241b
commit 4c7e454d86
+1 -1
View File
@@ -6,7 +6,7 @@ import fetcher from './fetcher';
/* common */
const __loginAnonymously = (username: string): Promise<User | null> => {
const url = `/auth/anonymous/login?user=${encodeURIComponent(username)}&aud=${siteId}?from=${encodeURIComponent(
const url = `/auth/anonymous/login?user=${encodeURIComponent(username)}&aud=${siteId}&from=${encodeURIComponent(
location.origin + location.pathname + '?selfClose'
)}`;
return fetcher.get<User>({ url, withCredentials: true, overriddenApiBase: '' });