frontend: #LOGIN
Massimo Melina committed
Mar 23, 2023 at 21:59 UTC
5447f5daae0c9b0afa2021e264de07fb696fb950
2 files changed
+6
README.md
+4
@@ -165,6 +165,10 @@ This is enough, but you may want to configure generated links accordingly:
165
- click the change button (right side of the field)
166
- enter the final URL of your proxy including the location
167
168
+## Hidden features
169
+
170
+- Going to address `#LOGIN` will bring up the login dialog
171
+
172
## Contribute
173
174
There are several ways to contribute
frontend/src/login.ts
+2
@@ -128,6 +128,8 @@ export async function loginDialog(navigate: ReturnType<typeof useNavigate>) {
128
129
export function useAuthorized() {
130
const { loginRequired } = useSnapState()
131
+ if (location.hash === '#LOGIN')
132
+ state.loginRequired = true
133
const navigate = useNavigate()
134
useEffect(() => {
135
(async () => {