Commit Graph

7 Commits

Author SHA1 Message Date
f4857f73fc fix: update default smtp username
Some checks failed
CI / scan_ruby (push) Has been cancelled
CI / scan_js (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled
- Change default SMTP username in ApplicationMailer to
  'noreply@mail.frytea.com'
- Comment out previous username in credentials to
  avoid confusion
- Ensure updated username is reflected in production
  environment settings

This update improves email configuration organization, making it
clearer and reducing the risk of misconfiguration, as the hardcoded
value in the mailer takes precedence.
2025-01-18 14:38:30 +08:00
28191fd829 fix: update SMTP username fetching method
- Change from hardcoded default email to using Rails credentials
- Improves security by avoiding exposure of sensitive information

This change ensures that the application fetches the SMTP username
from encrypted credentials, thereby enhancing security and reducing
risk of accidental exposure in the source code.
2025-01-18 14:26:35 +08:00
6ebc85c77a chore: update default email in application mailer
- Change default from email to a placeholder value
- This avoids using sensitive environment variables during development

This change ensures that the application does not expose sensitive
information while still allowing for email functionality in a
development environment.
2025-01-09 17:39:27 +08:00
eefe9984ac fix: update default from email in ApplicationMailer
- Change default from email to use ENV variable
- Fetch SMTP username from Rails credentials

This change improves the security of the application by avoiding
hardcoded email addresses and allows for easier configuration
across different environments.
2025-01-08 13:30:54 +08:00
8bb7615cb1 fix: correct user activation and password reset logic
- Change `user.send(:activate)` to `user.activate` for clarity.
- Fix typo in email parameter from `emial` to `email` in password reset.
- Update render calls to include status codes for better error handling.
- Modify password reset email method to accept a user parameter.
- Update tests to reflect changes in password reset functionality.

These changes improve the clarity of the user activation process and
ensure that the password reset functionality works correctly with
proper error handling and user feedback.
2025-01-08 10:14:36 +08:00
a54ebdbf23 feat: add account activation feature
- Implement AccountActivationsController for activation logic
- Create UserMailer for sending activation emails
- Update SessionsController to handle unactivated users
- Modify UsersController to restrict access to activated users
- Add activation fields to User model and database migration
- Create views for account activation emails
- Add tests for account activation functionality
2025-01-06 18:38:39 +08:00
5bd0c44c91 init sample-app 2024-12-29 17:12:54 +08:00