Skip to main content

A Django application that provides a custom User model where the username is the email address.

Project description

# Django Rapyd ModernAuth

This package provides a custom User model where the username is the email address.

## Inspiration

Users today expect to use their email address as the username during authentication. This works well because:

  • Users already know their email addresses by heart.

  • Since email addresses are unique, users don’t need to remember yet another item when either signing up or logging into web applications. IMHO this is a significant factor that plays a vital role in user adoption.

  • This is a time tested model and many web applications today follow this.

However, Django’s default approach for authentication requires a user provide both a username and an email address during sign up and then just use the username during login.

## Usage

Note: Django recommends you do this right at the beginning of the project. Making this change mid-project becomes significantly harder.

  • Install the package with: ` pip install django-rapyd-modernauth `

  • Edit Django settings: - Add modernauth to INSTALLED_APPS. - Set AUTH_USER_MODEL = modernauth.User.

  • Create models with: ` ./manage.py migrate `

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-rapyd-modernauth-0.0.4.tar.gz (8.2 kB view hashes)

Uploaded Source

Built Distribution

django_rapyd_modernauth-0.0.4-py3-none-any.whl (9.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page