Revert the deliberate break (#8295)
release / go (push) Successful in 1m51s
release / web (push) Successful in 1m16s
release / govulncheck (push) Successful in 19s
release / integration (push) Successful in 3m19s
release / android (push) Successful in 4m26s
release / Build signed APK (push) Successful in 5m7s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Publish the release image to GHCR (dispatch only) (push) Skipped
release / Build + push container image (push) Successful in 22s
release / Verify release artifacts (tag releases only) (push) Skipped
release / go (push) Successful in 1m51s
release / web (push) Successful in 1m16s
release / govulncheck (push) Successful in 19s
release / integration (push) Successful in 3m19s
release / android (push) Successful in 4m26s
release / Build signed APK (push) Successful in 5m7s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Publish the release image to GHCR (dispatch only) (push) Skipped
release / Build + push container image (push) Successful in 22s
release / Verify release artifacts (tag releases only) (push) Skipped
Run 11264 failed every named test: - TestMountedRoutes_RequireASessionAndAdminRoutesAnAdmin - TestRegister_AfterTheFirstAccountAnInviteIsTheOnlyWayIn - TestAdminUsers_DemotingStopsAtTheLastAdmin - TestHandleLogin_AWrongPasswordAndAnUnknownUserLookAlike - TestUpdateProfile_ChangesOnlyTheFieldsSent - TestEnumerate_LeavesHiddenFilesAndFoldersOut Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -105,7 +105,7 @@ func (h *handlers) handleRegister(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
// Every account after the first needs an invite.
|
||||
usedInviteToken := ""
|
||||
if userCount > 1 { // DELIBERATE BREAK: the second account needs no invite
|
||||
if userCount > 0 {
|
||||
if req.InviteToken == "" {
|
||||
writeErr(w, apierror.BadRequest("invite_required", "an invite token is required to register"))
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user