-
Notifications
You must be signed in to change notification settings - Fork 375
Enable Two Factor Authentication for Webvirtcloud
catborise edited this page Oct 6, 2022
·
1 revision
- Create a user/use existing one.
- Check e-mail field and enter correct e-mail address.
- Edit webvirtcloud/settings.py; enable otp and configure email settings
# OTP Config
OTP_ENABLED = False
# EMAIL Config
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_USE_TLS = True
EMAIL_PORT = 587
EMAIL_HOST_USER = #sender's email-id
EMAIL_HOST_PASSWORD = #password associated with above email-id
- Restart nginx(webvirtcloud)
- Login webvirtcloud; you will see a different page. like;
- Enter "I do not have/lost my OTP!"
- Enter e-mail address; do not use gmail use yahoo or another one(gmail does not show neither svg or png format in mail)
- Open your email client.
- Open your two factor authenticator app(google authenticator, authy etc)
- Scan QR Code.