use boot-key query parameter, tighten url match, put randomness in suggestions

This commit is contained in:
Paul Fitzpatrick
2024-05-23 14:59:58 -04:00
parent 07b80b1110
commit 7383b3f8f6
5 changed files with 12 additions and 11 deletions

View File

@@ -560,7 +560,7 @@ export class FlexServer implements GristServer {
this.app.get('/boot(/(:bootKey/?)?)?$', async (req, res) => {
// Doing a good redirect is actually pretty subtle and we might
// get it wrong, so just say /boot got moved.
res.send('The /boot/key page is now /admin?boot=key');
res.send('The /boot/KEY page is now /admin?boot-key=KEY');
});
}