Skip to content

Commit

Permalink
Fix Login code
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Malinin committed Sep 13, 2024
1 parent 444af09 commit 48d35a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Auth/login1.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ const authClient = solidClientAuthentication.default;
var url = new URL(window.location.href)
const url_hash = url.hash;

const callback = url.origin+url.pathname;

const IdP = url.searchParams.get('idp') || '';
const autoLogin = url.searchParams.get('autologin');
var sLogin = url.searchParams.get('slogin');
const sApp = url.searchParams.get('app');

const callback = url.origin+url.pathname + (sApp ? '?opl_app='+sApp : '');

const authCode =
url.searchParams.get("code") ||
Expand All @@ -25,8 +27,6 @@ const authCode =
}




document.addEventListener('DOMContentLoaded', async () =>
{
if (authCode) {
Expand Down

0 comments on commit 48d35a3

Please sign in to comment.