Phase 10, part 4: inviting users, and what admins can change

Settings → Users lists everyone with their access and status. Admins
invite people by email (a link for 7 days), as admins or as members with
modules each to view or edit; the invitation's page sets the password,
profile and emails wanted. Admins can resend or withdraw invitations,
change access, turn accounts off and on, unlock, reset two-factor, sign
someone out, and remove them; never the owner, nor themselves. Your
account gets the emails wanted and a photo.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 09:07:32 -07:00
co-authored by Claude Opus 5.5
parent 8040512a18
commit 47a504b7b2
18 changed files with 1220 additions and 15 deletions
+1 -1
View File
@@ -273,7 +273,7 @@ func TestTwoFactor(t *testing.T) {
if rec := signinPost(h, "203.0.113.9", "/signin/code", url.Values{"token": {token}, "code": {users.TOTPCode(secret, now)}}); rec.Code != http.StatusUnauthorized {
t.Errorf("reused code: %d", rec.Code)
}
rec = signinPost(h, "203.0.113.9", "/signin/code", url.Values{"token": {token}, "code": {users.TOTPCode(secret, now.Add(30 * time.Second))}, "next": {"/seo"}})
rec = signinPost(h, "203.0.113.9", "/signin/code", url.Values{"token": {token}, "code": {users.TOTPCode(secret, now.Add(30*time.Second))}, "next": {"/seo"}})
if rec.Code != http.StatusSeeOther || rec.Header().Get("Location") != "/seo" || cookieOf(rec, sessionCookie) == nil {
t.Fatalf("code: %d %s", rec.Code, rec.Body.String())
}