- 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