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:
@@ -49,7 +49,13 @@
|
||||
startTokenRefreshInterval();
|
||||
goto(resolve('/'));
|
||||
} else {
|
||||
goto(resolve('/login'));
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
const returnUrl = urlParams.get('return');
|
||||
if (returnUrl) {
|
||||
goto(resolve('/login') + `?return=${encodeURIComponent(returnUrl)}`);
|
||||
} else {
|
||||
goto(resolve('/login'));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
error = 'Registration failed';
|
||||
|
||||
Reference in New Issue
Block a user