项目作者: saadhaxxan

项目描述 :
Django 2FA (2 Factor Authentication)
高级语言: HTML
项目地址: git://github.com/saadhaxxan/Django-2FA-2-Factor-Authentication.git
创建时间: 2021-05-10T11:55:45Z
项目社区:https://github.com/saadhaxxan/Django-2FA-2-Factor-Authentication

开源协议:GNU General Public License v3.0

下载


Django 2FA (2 Factor Authentication)


TOTP stands for Time-based One-Time Password. It’s a fairly simple algorithm that involves combining a shared secret key with the current time to generate a verification token that’s only valid for a short amount of time. This is a django app to implement OTP using gmail Qrcode.

Installation steps

Clone the Repo and install the requirements

  1. git clone https://github.com/saadhaxxan/Django-2FA-2-Factor-Authentication
  2. cd Django-2FA-2-Factor-Authentication
  3. pip install -r requirements.txt
  4. python manage.py makemigrations
  5. python manage.py migrate
  6. python manage.py runserver
  7. Go to http://localhost:8000/

Email Settings

  1. EMAIL_USE_TLS = True
  2. EMAIL_PORT = 587
  3. EMAIL_HOST = 'smtp.gmail.com'
  4. EMAIL_HOST_USER = 'yourgmail@gmail.com'
  5. EMAIL_HOST_PASSWORD = 'yourpassword'
  6. EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'

Attention

To enable the option in Gmail: Sign in to your account in Gmail.com, then open another tab and go to the Less Safe Apps Setting and select “Open”.

Author

You can get in touch with me on my LinkedIn Profile:

Saad Hassan

LinkedIn Link

You can also follow my GitHub Profile to stay updated about my latest projects: GitHub Follow

If you liked the repo then kindly support it by giving it a star ⭐!

Contributions Welcome

forthebadge

If you find any bug in the code or have any improvements in mind then feel free to generate a pull request.