# Backend Development Interns --- - Mahek Nagdev - Onkar Bhatlawande - Aditya Mohan Work 1 ------ Author: Mahek Nagdev Description: Issue [#164](https://github.com/Auto-DL/Auto-DL/issues/164) Authentication Errors --> No error messages are given for errors in login / registration sometimes. Username and email should be saved to the database only once, after verifying everything. (CLOSED) Pull Request [#198](https://github.com/Auto-DL/Auto-DL/pull/198) Proper Error Messages in Authentication --> In authv1/views.py, Session(user) in the login function was being called before checking if the user is None or not which was generationg an error in the Token class in auth.py ('NoneType' object has no Attribute 'get'). Now, Session(user) is called after checking if the user is None or not which is rightly displaying error on client side ("Invalid Credentials"). (PULL REQUEST MERGED) Work 2 ------ Author: Aditya Mohan and Mahek Nagdev Description: django-allauth POC --> Try forgot password and verify email in a new app authv2, See if it is compatible with our authv1 models. allauth installation reference --> https://www.youtube.com/watch?v=dXZim_jgaiI Facing error while migrating --> **ImproperlyConfigured**("settings.DATABASES is improperly configured. Work 3 ------ Author: Mahek Nagdev Description: Issue [#235](https://github.com/Auto-DL/Auto-DL/issues/235) Add Email templates in authv1 app. (CLOSED) Pull Request [#236](https://github.com/Auto-DL/Auto-DL/pull/236) Add email templates in authv1 app --> New file added in authv1 app (emails.py) for storing email templates. (PULL REQUEST MERGED) Work 4 ------ Author: Mahek Nagdev Description: Issue [#35](https://github.com/Auto-DL/Auto-DL/issues/35) Forgot Password --> Create routes for implementing "resetting the password" in the authv1 app. (CLOSED) Pull Request [#257](https://github.com/Auto-DL/Auto-DL/pull/257) Add forgot password functionality --> Three functions added in authv1/views.py forgot_password - This function sends an email to the user with an otp. verify_otp - This function verifies the received otp. update_password - This function accepts a new password and updates it in the database. (PULL REQUEST MERGED) Work 5 ------ Author: Mahek Nagdev Description: Issue [#287](https://github.com/Auto-DL/Auto-DL/issues/287) Add unit tests for Store class in authv1/store.py. (CLOSED) Pull Request [#288](https://github.com/Auto-DL/Auto-DL/pull/288) Unit tests for all the methods in the Store class are added. A small change made in the delete method of the Store class. The condition to check whether the project is shared is now executed after checking whether the project is not None. (PULL REQUEST MERGED) Work 6 ------ Author: Aditya Mohan Description: Issue [#36](https://github.com/Auto-DL/Auto-DL/issues/36) Email Validation --> Create routes for implementing "Email validation" in the authv1 app. (PULL REQUEST MERGED) Pull Request [#227](https://github.com/Auto-DL/Auto-DL/pull/227) Add Email Validation functionality --> One function added in authv1/views.py verify_email - This function sends an email to the user with an otp. Work 7 ------ Author: Aditya Mohan Description: Issue [#250](https://github.com/Auto-DL/Auto-DL/issues/250) Add OTP Class --> Create OTP class in authv1 app. (PULL REQUEST MERGED) Pull Request [#227](https://github.com/Auto-DL/Auto-DL/pull/227) Add OTP Class --> Class added in authv1/auth.py This class contains methods to create, verify, find and delete an OTP object. Work 8 ------ Author: Aditya Mohan Description: Write unit tests for OTP class in authv1/auth.py. (PULL REQUEST CREATED) Work 9 ------ Author: Mahek Nagdev Description: Issue [#302](https://github.com/Auto-DL/Auto-DL/issues/302) Add unit tests for Session class in authv1/models.py. (CLOSED) Pull Request [#303](https://github.com/Auto-DL/Auto-DL/pull/303) BackEndApp/tests/test_session.py : Unit tests for all the methods in the Session class are added. BackEndApp/tests/utils_tests.py : TestSession class added. BackEndApp/authv1/models.py: In the create method of Session class, a condition is added to check whether the token is None or not. (PULL REQUEST MERGED) Work 10 ------ Author: Onkar Bhatlawande Description: Issue [#161](https://github.com/Auto-DL/Auto-DL/issues/161) Clean up parser generated file.(CLOSED) Pull Request [#195](https://github.com/Auto-DL/Auto-DL/pull/195) A function for removing all the unnecessary imports and formatting of the parser generated file was added successfully.(PULL REQUEST MERGED) Work 11 ------ Author: Onkar Bhatlawande Description: Issue [#1](https://github.com/Auto-DL/Deployment-Flask/issues/1) Flask App for deployment.(CLOSED) Pull Request [#2](https://github.com/Auto-DL/Deployment-Flask/pull/2) A flask app which will help the user in deploying the DL model on his/her machine was developed. As of now the app supports classification models only.(PULL REQUEST MERGED) Work 12 ------ Author: Onkar Bhatlawande Description: Issue [#3](https://github.com/Auto-DL/Deployment-Flask/issues/3) Update readme for deployment-flask repository.(CLOSED) Pull Request [#4](https://github.com/Auto-DL/Deployment-Flask/pull/4) The readme for the repository was updated with all the necessary instructions and information.(PULL REQUEST MERGED) Work 13 ------ Author: Onkar Bhatlawande Description: Issue [#304](https://github.com/Auto-DL/Auto-DL/issues/304) Add unit tests for User class in authv1 app.(CLOSED) Pull Request [#305](https://github.com/Auto-DL/Auto-DL/pull/305) Added unit tests for User class methods in test_user.py and the utils_tests.py contains the User class instances used for testing purposes.Mongomock and pytest were used mainly for carrying out these tests.(PULL REQUEST MERGED) :link: [Task List & Status](https://trello.com/b/p1avOfcC/backend-internship) ###### tags: `Summer` `Internship` `Book` `2021`