Commit Graph

4 Commits

Author SHA1 Message Date
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