Skip to content

Commit

Permalink
more cases
Browse files Browse the repository at this point in the history
  • Loading branch information
rthellend committed Nov 14, 2024
1 parent 9600455 commit 43f66e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions proxy/internal/passkeys/auth-template.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,19 @@
<div class="big">🛂</div>
<div>Authentication required to access</div>
<div id="target"><a href="{{.URL}}">{{.DisplayURL}}</a></div>
<div><input id="loginid" placeholder="LOGIN ID" /></div>
<div><input id="loginid" placeholder="Email" /></div>
<div><a class="button big" onclick="loginWithPasskey({{.Token}}, document.getElementById('loginid').value);">Continue</a></div>
{{- end }}
{{- if eq .Mode "RefreshID" }}
<div>{{.Email}}</div>
<div><a class="button" onclick="loginWithPasskey({{.Token}});">Refresh ID</a></div>
<div><a class="button" onclick="loginWithPasskey({{.Token}}, {{.Email}});">Refresh ID</a></div>
{{- end }}
{{- if eq .Mode "RegisterNewID" }}
<div>{{.Email}}</div>
{{- if .IsAllowed }}
{{- if .IsRegistered }}
<div>Already Registered</div>
<div><a class="button big" onclick="loginWithPasskey({{.Token}});">Continue</a></div>
<div><a class="button big" onclick="loginWithPasskey({{.Token}}, {{.Email}});">Continue</a></div>
{{- else }}
<div><a class="button" onclick="registerPasskey({{.Token}});">Register This Identity</a></div>
{{- end }}
Expand Down

0 comments on commit 43f66e1

Please sign in to comment.