mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-11 07:42:58 +03:00
[PR #994] [MERGED] feat: add the ability to make email optional #514
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/pocket-id/pocket-id/pull/994
Author: @stonith404
Created: 10/1/2025
Status: ✅ Merged
Merged: 10/3/2025
Merged by: @stonith404
Base:
main← Head:feature/optional-email📝 Commits (7)
d266a28feat: add the ability to make email optionalbb0a189fix case in labele2c92d1fix unit tests49aab25add backend validation for required email address09f0e20remove email from preview string16715e5fix e2e test servicee29db82Merge branch 'main' into feature/optional-email📊 Changes
44 files changed (+175 additions, -69 deletions)
View changed files
📝
backend/internal/common/errors.go(+10 -0)📝
backend/internal/dto/app_config_dto.go(+1 -0)📝
backend/internal/dto/user_dto.go(+7 -7)📝
backend/internal/dto/user_dto_test.go(+8 -7)📝
backend/internal/job/api_key_expiry_job.go(+1 -1)📝
backend/internal/model/app_config.go(+1 -0)📝
backend/internal/model/user.go(+6 -6)📝
backend/internal/service/api_key_service.go(+5 -1)📝
backend/internal/service/app_config_service.go(+1 -0)📝
backend/internal/service/audit_log_service.go(+6 -2)📝
backend/internal/service/e2etest_service.go(+2 -2)📝
backend/internal/service/email_service.go(+5 -1)📝
backend/internal/service/jwt_service_test.go(+10 -9)📝
backend/internal/service/ldap_service.go(+2 -1)📝
backend/internal/service/user_service.go(+14 -2)📝
backend/internal/utils/ptr_util.go(+8 -5)➕
backend/resources/migrations/postgres/20251001115300_optional_email.down.sql(+1 -0)➕
backend/resources/migrations/postgres/20251001115300_optional_email.up.sql(+1 -0)➕
backend/resources/migrations/sqlite/20251001115300_optional_email.down.sql(+1 -0)➕
backend/resources/migrations/sqlite/20251001115300_optional_email.up.sql(+40 -0)...and 24 more files
📄 Description
This PR adds the ability to make the email field optional:

Closes #867
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.