Skip to content

gauravkulkarni96/django-ajax-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django AJAX Authentication

Django auth by default requires form to be submitted to login and signup URLs. This does not work if we need to have the login signup from a popup/Modal as the errors need to be shown without being redirected. Hence, loogin signup has been implemented on a bootstrap modal using AJAX.

Django auth by default supports login and signup using username as primary key field. The User class has been overridden to support login and signup using E-mail ID as primary key.

Installation

  1. Copy the following lines to your settings.py file
LOGIN_REDIRECT_URL = '/'
AUTH_USER_MODEL = 'registration.User'
  1. Copy registration app to your project.
  2. Change the location of templates as required.
  3. python manage.py makemigrations registration
  4. python manage.py migrate

About

Django auth login and signup implemented using ajax; E-mail is used as primary key field.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published