Skip to content

Commit

Permalink
account linking
Browse files Browse the repository at this point in the history
  • Loading branch information
YannickFuereder committed Oct 26, 2023
1 parent 179a988 commit c4229b8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Assets/css/profile.css
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ button:active {
background-color: black;
}

.connected-accounts h1:nth-child(6) {
background-color: black;
}

.connected-accounts .item > span:nth-child(3) {
display: none;
}
Expand Down
5 changes: 4 additions & 1 deletion Assets/js/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ LoginManager.isLoggedIn().then(async (e) => {
}

localStorage.removeItem('linkType');
urlParams.delete('code');

window.history.replaceState({}, document.title, window.location.pathname + window.location.search);

//show account linked msg
}
Expand Down Expand Up @@ -319,7 +322,7 @@ function isNumber(str) {
}

async function disconnectAccount(e) {
const element = e.target.closest('h1');
const element = e.target.closest('[data-type]');

await LoginManager.validateToken();
const req = await fetch('https://api.login.netdb.at/unlink/' + element.dataset.type, {
Expand Down

0 comments on commit c4229b8

Please sign in to comment.