diff --git a/index.js b/index.js
index 719dcdd..d2de7e9 100644
--- a/index.js
+++ b/index.js
@@ -750,7 +750,7 @@ app.get(
}
);
-app.get("/project/yandexauth", async (req, res) => {
+app.get("/yandexauth", async (req, res) => {
const name = req.params.name;
var templateData = {
API_SERVER: process.env.API_SERVER,
@@ -758,10 +758,21 @@ app.get("/project/yandexauth", async (req, res) => {
Name: name,
};
- const source = fs.readFileSync(
- "static/templates/project/yandexauth.html",
- "utf8"
- );
+ const source = fs.readFileSync("static/templates/yandexauth.html", "utf8");
+ const template = handlebars.compile(source);
+ const resultT = template(templateData);
+ res.send(resultT);
+});
+
+app.get("/yandexconnect", async (req, res) => {
+ const name = req.params.name;
+ var templateData = {
+ API_SERVER: process.env.API_SERVER,
+ SITE_DOMAIN: process.env.SITE_DOMAIN,
+ Name: name,
+ };
+
+ const source = fs.readFileSync("static/templates/yandexconnect.html", "utf8");
const template = handlebars.compile(source);
const resultT = template(templateData);
res.send(resultT);
diff --git a/static/templates/index.html b/static/templates/index.html
index a5060c3..ac6032a 100644
--- a/static/templates/index.html
+++ b/static/templates/index.html
@@ -12,7 +12,7 @@
-
+
@@ -114,8 +114,8 @@
data-size="large"
data-width="328"
data-logo_alignment="left">
-
- -->
+ -->
+
Забыли пароль?