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>
183 183
184<section id="export"><h2>Export</h2> 184<section id="export"><h2>Export</h2>
185<p class="meta">Your profile, repositories, issues and merge requests as one 185<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
187never included; a replayed bundle's emails arrive unverified.</p> 187never included; a replayed bundle's emails arrive unverified.</p>
188<p><a href="/settings/export">Download bundle</a></p> 188<p><a href="/settings/export">Download bundle</a></p>
189</section> 189</section>
@@ -194,8 +194,9 @@ easier to pipe than to paste, and a minted token is shown once.</p>
194<pre class="message" tabindex="0">gitbay auth token create --name laptop # API tokens, read-only unless --scope full 194<pre class="message" tabindex="0">gitbay auth token create --name laptop # API tokens, read-only unless --scope full
195gitbay web sessions list # browser sessions 195gitbay web sessions list # browser sessions
196gitbay admin ... # instance administration</pre> 196gitbay admin ... # instance administration</pre>
197<p class="meta">All of it works from stock OpenSSH too: 197<p class="meta">All of it works from stock OpenSSH too, with the CLI's
198<code>ssh git@{{.Host}} auth whoami</code>.</p> 198grouping words dropped: <code>ssh git@{{.Host}} whoami</code>,
199<code>ssh git@{{.Host}} token create --name laptop</code>.</p>
199</section> 200</section>
200</div> 201</div>
201</div> 202</div>