internal/web/templates/login.html

03fe6e44370f8129c9ac68f13fe674cc271f5ffa
gitbay/internal/web/templates/login.html

18 lines · 1009 bytes

 1{{define "title"}}login · {{.Site}}{{end}}
 2{{define "content"}}
 3<h1>Log in</h1>
 4{{if .Error}}<p class="error" role="alert">{{.Error}}</p>{{end}}
 5<p>Browser sessions are minted over SSH — there is no password. From a machine
 6with your registered key:</p>
 7<pre class="message">ssh git@{{.Host}} web login</pre>
 8<p>then open the printed URL within five minutes.</p>
 9<h2>New here?</h2>
10{{if eq .Mode "open"}}<p><a href="/register">Create an account</a> — pick a username, paste your SSH
11public key, verify your email. Or from the terminal:</p>
12<pre class="message">ssh git@{{.Host}} register --username you --email you@example.org</pre>
13{{else if eq .Mode "invite"}}<p>This instance is invite-only. With a code from an admin,
14<a href="/register">create an account</a> — pick a username, paste your SSH public key. Or from
15the terminal:</p>
16<pre class="message">ssh git@{{.Host}} register --username you --invite &lt;code&gt;</pre>
17{{else}}<p>This instance is not accepting new accounts.</p>{{end}}
18{{end}}
Keyboard shortcuts

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form