Fix symbol in login-cert template

This commit is contained in:
Mikołaj Pich 2019-11-14 21:08:04 +01:00
parent 285e33c14a
commit 847a95cd09
No known key found for this signature in database
GPG key ID: F62B26E36D4C4BAA
2 changed files with 3 additions and 2 deletions

View file

@ -32,6 +32,7 @@ router.post("/:symbol/Account/LogOn", (req, res) => {
router.get("/:symbol/FS/LS", (req, res) => {
res.render("login-cert", {
symbol: req.param("symbol"),
cert: fs.readFileSync("public/cert.xml", "utf8"),
uonetplusOpiekun: protocol(req) + "://" + req.get('host').replace("cufs.", "uonetplus.")
});

View file

@ -3,10 +3,10 @@ html
head
title Working...
body
form(method="POST" name="hiddenform" action=uonetplusOpiekun + "/powiatwulkanowy/LoginEndpoint.aspx")
form(method="POST" name="hiddenform" action=uonetplusOpiekun + "/" + symbol + "/LoginEndpoint.aspx")
input(type="hidden" name="wa" value="wsignin1.0")
input(type="hidden" name="wresult" value=cert)
input(type="hidden" name="wctx" value=uonetplusOpiekun + "/powiatwulkanowy/LoginEndpoint.aspx")
input(type="hidden" name="wctx" value=uonetplusOpiekun + "/" + symbol + "/LoginEndpoint.aspx")
noscript
p Script is disabled. Click Submit to continue.