fix: register templte bug

This commit is contained in:
HRG @ SCExC 2025-01-12 10:13:44 -05:00
parent 38b9c0e538
commit bf37f91a34
2 changed files with 2 additions and 2 deletions

View file

@ -153,7 +153,7 @@ app.post("/register", async (req, res) => {
req.session.userId = userId; req.session.userId = userId;
res.redirect("/workshop"); res.redirect("/workshop");
} catch (e) { } catch (e) {
res.render("auth/register.html", { error: e }); return res.send(eta.render("auth/register", { error: e }));
} }
}); });

View file

@ -5,6 +5,6 @@
move in move in
</button> </button>
<% if (it.error) { %> <% if (it.error) { %>
<%= error %> <%= it.error %>
<% } %> <% } %>
</form> </form>