This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

appview/state: allow prefilling handle in login page

Signed-off-by: oppiliappan <me@oppi.li>

author
oppiliappan
date (Jul 20, 2026, 10:27 AM +0100) commit 01239456 parent 9693256d change-id rkxqvmmt
+5 -1
+1
appview/pages/pages.go
··· 341 341 ReturnUrl string 342 342 ErrorCode string 343 343 AddAccount bool 344 + Handle string 344 345 Accounts []oauth.AccountInfo 345 346 } 346 347
+2 -1
appview/pages/templates/user/login.html
··· 54 54 {{ end }} 55 55 56 56 <form 57 - class="mt-4 group" 57 + class="mt-4 w-full max-w-lg mx-auto group" 58 58 hx-post="/login" 59 59 hx-swap="none" 60 60 hx-disabled-elt="#login-button" ··· 72 72 tabindex="1" 73 73 required 74 74 placeholder="akshay.tngl.sh" 75 + value="{{ .Handle }}" 75 76 class="text-lg md:text-base" 76 77 /> 77 78 <span class="text-sm text-gray-500 mt-1">
+2
appview/state/login.go
··· 20 20 returnURL := r.URL.Query().Get("return_url") 21 21 errorCode := r.URL.Query().Get("error") 22 22 addAccount := r.URL.Query().Get("mode") == "add_account" 23 + handle := r.URL.Query().Get("handle") 23 24 24 25 registry := s.oauth.GetAccounts(r) 25 26 s.pages.Login(w, pages.LoginParams{ 26 27 ReturnUrl: returnURL, 27 28 ErrorCode: errorCode, 28 29 AddAccount: addAccount, 30 + Handle: handle, 29 31 Accounts: registry.Accounts, 30 32 }) 31 33 case http.MethodPost: