mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
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:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user