Trying block code

This commit is contained in:
Mohamed El-Kalioby
2019-01-25 23:58:38 +03:00
parent eb2095e650
commit 8c413083d5
2 changed files with 2 additions and 6 deletions

View File

@@ -37,7 +37,7 @@
**Note**: Starting version 1.1, ~~FIDO_LOGIN_URL~~ isn't required for FIDO2 anymore.
1. Add mfa to urls.py
```python
`python
import mfa
import mfa.TrustedDevice
urls_patterns= [
@@ -46,7 +46,7 @@
url(r'devices/add$', mfa.TrustedDevice.add,name="mfa_add_new_trusted_device"), # This short link to add new trusted device
'....',
]
```
`
1. Provide `mfa_auth_base.html` in your templaes with block called 'head' and 'content'
The template will be included during the user login.
If you will use Email Token method, then you have to provide template named `mfa_email_token_template.html` that will content the format of the email with parameter named `user` and `otp`.

View File

@@ -1,4 +0,0 @@
site_name: MkLorum
nav:
- Home: index.md
theme: readthedocs