- 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.
- 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.
- 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.
- 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.
- 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.
- 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