vole
Clone
Read only, no credentials:
https://rodent.software/git/vole.git
Write over SSH with a registered key:
git clone ssh://git@0.0.0.0:2222/vole.git
A free and open-source forge that lives in your Git repo.
Unify terminology across the web UI and docs
ab326d3ac1fd947a9df45f31f6dc10ab38627882 · Keenan Nemetz · 14d ago · parent 5b814e99
Unify terminology across the web UI and docs Use account, repository, change request, enrollment link, instance admin, and sign in/out consistently. Rename the access guide to accounts-and-access.md, update its links, and record the canonical terms and retained command/URL spellings in the documentation index.
server/web/auth.go +4−4
| @@ -56,11 +56,11 @@ func (a *Auth) Enabled() bool { return a != nil && a.WA != nil } | |||
| 56 | 56 | // make a misconfigured proxy an authentication bypass. | |
| 57 | 57 | func newAuth(cfg *config.Config) (*Auth, error) { | |
| 58 | 58 | if strings.TrimSpace(cfg.PublicURL) == "" { | |
| 59 | return &Auth{Disabled: "set public_url to an https URL to enable browser login"}, nil | ||
| 59 | return &Auth{Disabled: "set public_url to an https URL to enable browser sign-in"}, nil | ||
| 60 | 60 | } | |
| 61 | 61 | u, err := url.Parse(cfg.PublicURL) | |
| 62 | 62 | if err != nil || u.Scheme != "https" || u.Host == "" { | |
| 63 | return &Auth{Disabled: "browser login needs public_url to be an https URL"}, nil | ||
| 63 | return &Auth{Disabled: "browser sign-in needs public_url to be an https URL"}, nil | ||
| 64 | 64 | } | |
| 65 | 65 | rpID := strings.ToLower(u.Hostname()) | |
| 66 | 66 | if rpID == "" { | |
| @@ -291,7 +291,7 @@ func (w *Web) securityHeaders(rw http.ResponseWriter) { | |||
| 291 | 291 | func (w *Web) enabled() bool { return w.Auth != nil && w.Auth.Enabled() } | |
| 292 | 292 | ||
| 293 | 293 | // registrationEnabled is a policy switch on top of passkey availability: an | |
| 294 | // instance can have browser login without accepting new accounts. | ||
| 294 | // instance can have browser sign-in without accepting new accounts. | ||
| 295 | 295 | func (w *Web) registrationEnabled() bool { | |
| 296 | 296 | return w.enabled() && w.Cfg != nil && w.Cfg.OpenRegistration | |
| 297 | 297 | } | |
| @@ -410,7 +410,7 @@ func (w *Web) requireHTMLUser(rw http.ResponseWriter, r *http.Request) (*princip | |||
| 410 | 410 | func (w *Web) requireAPIUser(rw http.ResponseWriter, r *http.Request) (*principal, bool) { | |
| 411 | 411 | pr := w.principal(r) | |
| 412 | 412 | if pr == nil { | |
| 413 | writeJSONError(rw, http.StatusUnauthorized, "log in first") | ||
| 413 | writeJSONError(rw, http.StatusUnauthorized, "sign in first") | ||
| 414 | 414 | return nil, false | |
| 415 | 415 | } | |
| 416 | 416 | return pr, true | |