-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(auth): implement email verification functionality #459
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
🦋 Changeset detectedLatest commit: 321f12f The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
commit: |
…ieval and verification checks
RATIU5
approved these changes
Mar 10, 2025
dreyfus92
approved these changes
Mar 10, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a series of changes to improve email verification and notification settings in the StudioCMS platform. These updates include new utility functions, database schema modifications, and additional routes to support email verification.
Key changes include:
Email Verification and Notification Settings:
packages/studiocms/src/components/dashboard/islands/LoginChecker.astro
: Added email verification checks and conditional redirection based on email verification status. [1] [2]packages/studiocms/src/consts.ts
: IntroducedCMSNotificationSettingsId
andNotificationSettingsDefaults
for managing notification settings. [1] [2]packages/studiocms/src/db/tables.ts
: Added new tablesStudioCMSNotificationSettings
andStudioCMSEmailVerificationTokens
to store notification settings and email verification tokens. [1] [2]New Utility Functions:
packages/studiocms/src/lib/auth/verify-email.ts
: Implemented utility functions to handle email verification, including checking if email verification is enabled, creating and deleting verification requests, and sending verification emails.Route and Integration Updates:
packages/studiocms/src/index.ts
: Added new routes for email verification and notification settings, and integrated new email verification utilities. [1] [2] [3] [4] [5]Internationalization (i18n) and UI Updates:
packages/studiocms/src/lib/i18n/translations/en-us.json
: Added new translations for email verification and notification settings. [1] [2] [3]These changes collectively enhance the security and configurability of the StudioCMS platform by enabling email verification for users and providing more granular notification settings.