mirror of
https://github.com/retspen/webvirtcloud
synced 2024-11-26 00:04:15 +00:00
Created 5. Enable Two Factor Authentication (markdown)
parent
5f49f924ec
commit
d1e7cce60a
1 changed files with 26 additions and 0 deletions
26
5.-Enable-Two-Factor-Authentication.md
Normal file
26
5.-Enable-Two-Factor-Authentication.md
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
1. Create a user/use existing one.
|
||||||
|
2. Check e-mail field and enter correct e-mail address.
|
||||||
|
3. 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
|
||||||
|
```
|
||||||
|
4. Restart nginx(webvirtcloud)
|
||||||
|
5. Login webvirtcloud; you will see a different page. like;
|
||||||
|
|
||||||
|
![image](https://user-images.githubusercontent.com/1725643/194268475-6aa7657c-e585-48b3-9c8f-583f5d8de10a.png)
|
||||||
|
|
||||||
|
6. Enter "I do not have/lost my OTP!"
|
||||||
|
7. Enter e-mail address; do not use gmail use yahoo or another one(gmail does not show neither svg or png format in mail)
|
||||||
|
8. Open your email client.
|
||||||
|
9. Open your two factor authenticator app(google authenticator, authy etc)
|
||||||
|
10. Scan QR Code.
|
||||||
|
|
Loading…
Reference in a new issue