Set correct login flow
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Melora Hugues 2023-10-15 20:11:50 +02:00
parent 20fde2335e
commit 1e8b9ef161
9 changed files with 34 additions and 43 deletions

View file

@ -1,4 +1,3 @@
</div>
</body>
</html>

View file

@ -8,11 +8,4 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body class="theme-body">
<div class="theme-navbar">
<div class="theme-navbar__logo-wrap">
</div>
</div>
<div class="dex-container">
<body>

View file

@ -1,15 +1,5 @@
<html>
{{ template "header.html" . }}
<head>
<h1>Polycule Connect home page</h1>
</head>
<body>
<form action="/login" method="post">
<div>
<input type="submit" value="login">
</div>
</form>
</body>
</html>
{{ template "footer.html" . }}

View file

@ -1,15 +1,13 @@
{{ template "header.html" . }}
<div class="theme-panel">
<h2 class="theme-heading">Log in to {{ issuer }} </h2>
<div>
{{ range $c := .Connectors }}
<div>
'{{ $c.ID }}'
<a href="{{ $c.URL }}">{{ $c.Name }} </a>
</div>
{{ end }}
</div>
<script src="/static/scripts/index.js" defer></script>
<div>
<form action="" id="connectorform">
<label for="cname">Connector name</label>
<input type="text" id="cname" name="connector_id">
<input type="submit">
</form>
</div>
{{ template "footer.html" . }}