Commit Graph

7 Commits

Author SHA1 Message Date
a3f6c9770f fix: correct link_to syntax in account activation email
- Updated the link_to helper in the account activation email view
- Changed the order of parameters in edit_account_activation_url

This change corrects the syntax for the link_to method, ensuring
that the activation link is generated properly with the correct
parameters. This fix improves the functionality of the account
activation process for users.
2025-01-08 17:39:46 +08:00
f52155f7be style: clean up account activation email template
- Remove redundant paragraph containing the activation URL
- Keep only the link for activation

This change enhances the clarity of the email template by eliminating
unnecessary elements, making it easier to maintain and understand.
2025-01-08 17:32:10 +08:00
2c7e4970f3 fix: correct account activation link parameter
- Change activation token parameter from `activation_token` to `id` in the account activation link.
- This ensures the link correctly references the user activation token for account activation.
2025-01-08 16:31:08 +08:00
299e930d1a style: format account activation email template
- Remove unnecessary line breaks in the activation link
- Clean up the formatting of the email template

This commit improves the readability of the account activation
email template by removing redundant line breaks and ensuring
consistent formatting. No functional changes were made to the
link or its behavior.
2025-01-08 14:13:45 +08:00
1f2c66300a style: format email link for consistency
- Adjust spacing in the email parameter of the link_to helper
- Ensure consistent formatting in the account activation email

This change improves the readability of the code by ensuring
consistent spacing in the parameters, which can help prevent
errors in future modifications.
2025-01-08 13:59:25 +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