Skip to content

Commit 08af5a5

Browse files
committed
authn code was moved
1 parent 4f60e5d commit 08af5a5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

common/js/index-buttons.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ function register() {
44
alert(2); window.location.href = "/register";
55
}
66
document.addEventListener('DOMContentLoaded', async function() {
7-
if (!UI.authn.currentUser()) await UI.authn.checkUser();
8-
let user = UI.authn.currentUser();
7+
if (!authn.currentUser()) await authn.checkUser();
8+
let user = authn.currentUser();
99

1010
// IF LOGGED IN: SET SolidServerRootRedirectLink. LOGOUT
1111
if( user ) {
1212
window.localStorage.setItem(keyname, user.uri);
13-
await UI.authn.authSession.logout();
13+
await authn.authSession.logout();
1414
}
1515
else {
1616
let webId = window.localStorage.getItem(keyname);

0 commit comments

Comments
 (0)