show info about app when authorizing

This commit is contained in:
Mystikfluu
2023-02-10 17:24:27 +01:00
parent 1f061af9a0
commit 59b9ecb01c
3 changed files with 63 additions and 6 deletions
+13 -3
View File
@@ -14,18 +14,28 @@
<% if(user.username === undefined) { %>
<script> document.location.href = '/no_login?r='+encodeURIComponent(document.location.pathname) </script>
<% } else { %>
<script src="https://js.hcaptcha.com/1/api.js" async defer></script>
<% if(query.id === undefined) { %>
<script> document.location.href="/" </script>
<% } else { %>
<script src="https://js.hcaptcha.com/1/api.js" async defer></script>
<% } %>
<% } %>
</head>
<body>
<div class="center">
<h1>Authorize App</h1>
<p>Please authorize the app to access your information:</p>
<p>Please authorize the app "<%= application.application_name %>" to access your information:</p>
<form action="/authorize" method="post">
<input type="number" value=<%- query.id %> class="hidden" name="application_id" id="application_id">
<input type="number" value=<%= query.id %> class="hidden" name="application_id" id="application_id">
<div class="h-captcha" data-sitekey="<%- hcaptcha_sitekey %>"></div>
<input type="submit" value="Authorize">
</form>
<br>
<br>
<div>
<h2>more about <b><%= application.application_name %></b></h2>
<%= application.application_description %>
</div>
</div>
</body>
</html>