Commit 9bcf573200

9bcf573200627fcd62d2b2c66054f938c0002e12

parent: 4ffdc2c645

Verified · cmc

cmc <hello@cleberg.net> · 2026-09-28 09:10 UTC

account: quote whoami, token create and auth export in forms that run

Ref #263

Layout: unified · split

internal/web/templates/account.html +4 −3
@@ -183,7 +183,7 @@ form here to add one, since a browser cannot produce an APNs token.</p>
183183
184184<section id="export"><h2>Export</h2>
185185<p class="meta">Your profile, repositories, issues and merge requests as one
186JSON bundle, the same one <code>gitbay account export</code> writes. Keys are
186JSON bundle, the same one <code>gitbay auth export</code> writes. Keys are
187187never included; a replayed bundle's emails arrive unverified.</p>
188188<p><a href="/settings/export">Download bundle</a></p>
189189</section>
@@ -194,8 +194,9 @@ easier to pipe than to paste, and a minted token is shown once.</p>
194194<pre class="message" tabindex="0">gitbay auth token create --name laptop # API tokens, read-only unless --scope full
195195gitbay web sessions list # browser sessions
196196gitbay admin ... # instance administration</pre>
197<p class="meta">All of it works from stock OpenSSH too:
198<code>ssh git@{{.Host}} auth whoami</code>.</p>
197<p class="meta">All of it works from stock OpenSSH too, with the CLI's
198grouping words dropped: <code>ssh git@{{.Host}} whoami</code>,
199<code>ssh git@{{.Host}} token create --name laptop</code>.</p>
199200</section>
200201</div>
201202</div>