Skip to content

vaishali-login-integeration #57

@DevTrackClub

Description

@DevTrackClub

Team :
Frontend

Task :
Page integeration

Description :
Integerate the login page with end points

Details :

  • Make use of the packages documentatoin sent by pradyumna on the server.
  • Django ninja api uses session based ID to authenticate users based on whether their email is a student email or an admin email. So we need 2 fields : email and password from the frontend.
  • These 2 data should be passsed to the POST api
  • The response will be of the form :

//For a valid user:
{
"message": "Login successful",
"role": user.role,
"csrf_token": get_token(request)
}

//For an invalid user :
{"detail": "Invalid credentials"}, status=401

  • Put this on gpt and understand how frontend would have to handle the session
  • Make use of the MVVM architecture so that the code is clean and understandable, eg : api related code should go in the api directory, etc
  • Try to make notes and share it with your teammates so it helps them as well :))

Metadata

Metadata

Assignees

Labels

frontendTasks for flutter devsimprovementEnhancement to existing featuresmedium priorityImportant but not urgent

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions