mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-09 14:53:00 +03:00
[PR #100] [MERGED] feat: allow sign in with email #958
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/100
Author: @stonith404
Created: 1/6/2025
Status: ✅ Merged
Merged: 1/19/2025
Merged by: @stonith404
Base:
main← Head:feature/email-sign-in📝 Commits (10+)
d1618b7feat: allow sign in with email3c2a603fix: global rate limit overwrites rate limit per routed36425fredirect to client authorization if email link requested on this page4b2f560Merge branch 'main' into feature/email-sign-in2fa6cebadd ability to disable login notifications9a99a0cadapt testsa17f16aMerge branch 'main' into feature/email-sign-in3d85fc2Merge branch 'main' into feature/email-sign-inae456f1Merge branch 'main' into feature/email-sign-in6283b85fix checkbox spacing📊 Changes
42 files changed (+422 additions, -145 deletions)
View changed files
📝
backend/internal/bootstrap/bootstrap.go(+0 -2)📝
backend/internal/bootstrap/router_bootstrap.go(+7 -3)📝
backend/internal/common/errors.go(+1 -1)📝
backend/internal/controller/user_controller.go(+19 -2)📝
backend/internal/dto/app_config_dto.go(+2 -1)📝
backend/internal/dto/user_dto.go(+5 -0)📝
backend/internal/job/db_cleanup.go(+1 -1)📝
backend/internal/middleware/rate_limit.go(+8 -8)📝
backend/internal/model/app_config.go(+2 -1)📝
backend/internal/service/app_config_service.go(+19 -6)📝
backend/internal/service/audit_log_service.go(+2 -2)📝
backend/internal/service/email_service.go(+14 -9)📝
backend/internal/service/email_service_templates.go(+13 -2)📝
backend/internal/service/user_service.go(+53 -6)📝
backend/internal/utils/email/email_service_templates.go(+0 -2)📝
backend/resources/email-templates/components/style_html.tmpl(+15 -0)📝
backend/resources/email-templates/login-with-new-device_html.tmpl(+1 -1)➕
backend/resources/email-templates/one-time-access_html.tmpl(+17 -0)➕
backend/resources/email-templates/one-time-access_text.tmpl(+8 -0)📝
backend/resources/email-templates/test_html.tmpl(+1 -1)...and 22 more files
📄 Description
This feature resolves #18 which suggest that users should be able to sign in with an link sent to their email. This function is only recommended for environment where security isn't a big concern like hosting it in the local network.
The feature has to be enabled in the settings:

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