mirror of
https://git.waldn.net/git/knotteye/satyr.git
synced 2025-10-20 11:41:10 +00:00
Rework invitation UI a bit, document API changes
This commit is contained in:
@@ -507,12 +507,6 @@ async function initSite(openReg) {
|
||||
}
|
||||
else res.render('invite.njk',Object.assign({icode: req.params.code}, njkconf));
|
||||
});
|
||||
app.get('/invite', (req, res) => {
|
||||
if(tryDecode(req.cookies.Authorization)) {
|
||||
res.redirect('/profile');
|
||||
}
|
||||
else res.render('invite.njk',Object.assign({icode: ""}, njkconf));
|
||||
});
|
||||
app.get('/register', (req, res) => {
|
||||
if(tryDecode(req.cookies.Authorization) || !openReg) {
|
||||
res.redirect(njkconf.rootredirect);
|
||||
|
Reference in New Issue
Block a user