feat: enhance user experience with tooltips; implement return URL handling on login and registration; add user roles; improve paste visibility checks

This commit is contained in:
2025-12-28 15:31:13 -05:00
parent 4151c62b8c
commit 5fca207ad6
11 changed files with 253 additions and 27 deletions
@@ -17,6 +17,12 @@
setTokens(data.result.token, data.result.refreshToken);
startTokenRefreshInterval();
}
const urlParams = new URLSearchParams(window.location.search);
const returnUrl = urlParams.get('return');
if (returnUrl) {
window.location.href = returnUrl;
return;
}
window.location.href = '/';
} else {
error = 'Invalid username or password';