anitab-org / anitab-forms-web

AnitaB Forms (web), an application to process smaller 4-week or full day programs to contribute to open source projects. Similar to GSoC, Outreachy, or RGSoC. This is the web app.
GNU General Public License v3.0
42 stars 77 forks source link

Feature: Activate new registered users by making API request #83

Closed codesankalp closed 3 years ago

codesankalp commented 3 years ago

Is your feature request related to a problem? Please describe.

For a complete basic authentication system, we need to activate the newly registered users. When a newly registered user clicks on the activation link sent to the mail it results in a redirection to the Login Page.

Describe the solution you'd like

Create a new URL in urls.js for activating user which will make a GET request to http://127.0.0.1:8000/api/token_auth/activate/< uidb64 >/< token >.

The email for activating user contains URL in this format: http://localhost:3000/< uidb64 >/< token >.

So you have to add a Route to this URL also to parse it and make a request to the backend and display the response received from the backend.

Additional context

This issue needs to be solved after solving this issue https://github.com/anitab-org/open-source-programs-backend/issues/81

Estimation

1 hour.

codesankalp commented 3 years ago

@isabelcosta After solving these issues:

  1. 83

  2. https://github.com/anitab-org/open-source-programs-backend/issues/81

Registering new users will work perfectly.

Can you add labels to it?

codesankalp commented 3 years ago

I would like to work on this issue @isabelcosta .

codesankalp commented 3 years ago

@isabelcosta Can I start working on this as the login feature is not working?

isabelcosta commented 3 years ago

assigned to you @codesankalp