Project-Stage-Academy / ChNU-Practics-2024

0 stars 1 forks source link

Refactor authentication views #40

Closed ivktac closed 8 months ago

ivktac commented 8 months ago

These changes refactor views to enhance organization, reuse, and readability. Introduce mixins for improved modularity in authentication-related functionalities. Serializers and views have been revamped to leverage these mixins, resulting in a cleaner and more structured.

Key changes include:

Replace duplicate code in serializers with newly introduces mixins:

send_confirmation_email and send_password_recovery_email have been consolidated into the send_user_email function for streamlined user-related actions.