Skip to content

Commit 48d35a3

Browse files
author
Sergey Malinin
committed
Fix Login code
1 parent 444af09 commit 48d35a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Auth/login1.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ const authClient = solidClientAuthentication.default;
33
var url = new URL(window.location.href)
44
const url_hash = url.hash;
55

6-
const callback = url.origin+url.pathname;
76

87
const IdP = url.searchParams.get('idp') || '';
98
const autoLogin = url.searchParams.get('autologin');
109
var sLogin = url.searchParams.get('slogin');
10+
const sApp = url.searchParams.get('app');
11+
12+
const callback = url.origin+url.pathname + (sApp ? '?opl_app='+sApp : '');
1113

1214
const authCode =
1315
url.searchParams.get("code") ||
@@ -25,8 +27,6 @@ const authCode =
2527
}
2628

2729

28-
29-
3030
document.addEventListener('DOMContentLoaded', async () =>
3131
{
3232
if (authCode) {

0 commit comments

Comments
 (0)