forgejo/models/organization
Gusted 691dd023ff
Some checks are pending
/ release (push) Waiting to run
testing-integration / test-unit (push) Waiting to run
testing-integration / test-sqlite (push) Waiting to run
testing-integration / test-mariadb (v10.6) (push) Waiting to run
testing-integration / test-mariadb (v11.8) (push) Waiting to run
testing / backend-checks (push) Waiting to run
testing / frontend-checks (push) Waiting to run
testing / test-unit (push) Blocked by required conditions
testing / test-e2e (push) Blocked by required conditions
testing / test-remote-cacher (redis) (push) Blocked by required conditions
testing / test-remote-cacher (valkey) (push) Blocked by required conditions
testing / test-remote-cacher (garnet) (push) Blocked by required conditions
testing / test-remote-cacher (redict) (push) Blocked by required conditions
testing / test-mysql (push) Blocked by required conditions
testing / test-pgsql (push) Blocked by required conditions
testing / test-sqlite (push) Blocked by required conditions
testing / security-check (push) Blocked by required conditions
chore: unify the usage of CryptoRandomString (#10110)
- Similair spirit of forgejo/forgejo!7453.
- Refactor the code in such a way that it always succeeds.
- To avoid doing mathematics if you use this function, define three security level (64, 128 and 256 bits) that correspond to a specific length which has that a security guarantee. I picked them as they fit the need for the existing usages of the code.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/10110
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Reviewed-by: Lucas <sclu1034@noreply.codeberg.org>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2025-11-15 13:24:53 +01:00
..
TestFindOrgs fix: show membership of limited orgs 2025-06-06 19:33:26 +02:00
TestInconsistentOwnerTeam [BUG] Don't allow owner team with incorrect unit access 2024-10-11 14:48:47 +02:00
main_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
org.go fix: prevent orgs from being added as members of orgs (#9757) 2025-11-08 22:05:21 +01:00
org_list.go fix(ui): wrong org dashboard links when switching dashboard context (#8688) 2025-08-07 14:32:55 +02:00
org_list_test.go fix(ui): wrong org dashboard links when switching dashboard context (#8688) 2025-08-07 14:32:55 +02:00
org_repo.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
org_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
org_user.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
org_user_test.go fix: prevent orgs from being added as members of orgs (#9757) 2025-11-08 22:05:21 +01:00
team.go feat(ui): add links to review request targets in issue comments (#8239) 2025-07-23 04:45:58 +02:00
team_invite.go chore: unify the usage of CryptoRandomString (#10110) 2025-11-15 13:24:53 +01:00
team_invite_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
team_list.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
team_repo.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
team_test.go feat(ui): add links to review request targets in issue comments (#8239) 2025-07-23 04:45:58 +02:00
team_unit.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
team_user.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00