On the multi-tenant edition anyone can set up a team: their account, the company and its website, whose registered domain the team works on (the profile keeps to it). A person can belong to several teams and switch between them from the sidebar, or set up another. Inviting someone who has an account adds them to the team. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
26 lines
1.4 KiB
HTML
26 lines
1.4 KiB
HTML
{{define "content"}}{{with .Data}}
|
|
{{if .Code}}
|
|
<h1>Two-factor sign-in</h1>
|
|
<p class="lede">Enter the six-digit code your authenticator app shows for Supermarket.</p>
|
|
{{with .Problem}}<p class="error" role="alert">{{.}}</p>{{end}}
|
|
<form class="card" method="post" action="/signin/code">
|
|
<input type="hidden" name="token" value="{{.Token}}">
|
|
<input type="hidden" name="next" value="{{.Next}}">
|
|
<label>Code <input name="code" inputmode="numeric" autocomplete="one-time-code" pattern="[0-9 ]{6,7}|[A-Za-z0-9 -]{12,16}" required autofocus>
|
|
<span class="help">Lost your phone? Enter one of your recovery codes instead.</span></label>
|
|
<button type="submit">Sign in</button>
|
|
</form>
|
|
<p class="help"><a href="/signin">Start again</a></p>
|
|
{{else}}
|
|
<h1>Sign in</h1>
|
|
{{with .Problem}}<p class="error" role="alert">{{.}}</p>{{end}}
|
|
<form class="card" method="post" action="/signin">
|
|
<input type="hidden" name="next" value="{{.Next}}">
|
|
<label>Email address <input type="email" name="email" value="{{.Email}}" autocomplete="username" required {{if not .Email}}autofocus{{end}}></label>
|
|
<label>Password <input type="password" name="password" autocomplete="current-password" required {{if .Email}}autofocus{{end}}></label>
|
|
<button type="submit">Sign in</button>
|
|
</form>
|
|
<p class="help"><a href="/forgot{{with .Email}}?email={{.}}{{end}}">Forgotten your password?</a>{{if $.Multi}} · New here? <a href="/signup">Set up your team</a>{{end}}</p>
|
|
{{end}}
|
|
{{end}}{{end}}
|