Merge pull request #796 from ericchiang/html-template

{web,server}: use html/template and reduce use of auth request ID
This commit is contained in:
Eric Chiang
2017-02-02 17:33:06 -08:00
committed by GitHub
4 changed files with 29 additions and 19 deletions

View File

@@ -5,7 +5,7 @@
<div>
{{ range $c := .Connectors }}
<div class="theme-form-row">
<a href="{{ $c.URL }}?req={{ $.AuthReqID }}" target="_self">
<a href="{{ $c.URL }}" target="_self">
<button class="dex-btn theme-btn-provider">
<span class="dex-btn-icon dex-btn-icon--{{ $c.ID }}"></span>
<span class="dex-btn-text">Log in with {{ $c.Name }}</span>

View File

@@ -15,7 +15,6 @@
</div>
<input tabindex="2" required id="password" name="password" type="password" class="theme-form-input" placeholder="password" {{ if .Invalid }} autofocus {{ end }}/>
</div>
<input type="hidden" name="req" value="{{ .AuthReqID }}"/>
{{ if .Invalid }}
<div class="dex-error-box">