From 8c413083d58969e09954b4c83774da2bfa43d5da Mon Sep 17 00:00:00 2001 From: Mohamed El-Kalioby Date: Fri, 25 Jan 2019 23:58:38 +0300 Subject: [PATCH] Trying block code --- docs/installation.md | 4 ++-- docs/mkdocs.yml | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) delete mode 100644 docs/mkdocs.yml diff --git a/docs/installation.md b/docs/installation.md index 7f1cb81..5c9c8f2 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -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`. diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml deleted file mode 100644 index b1eead6..0000000 --- a/docs/mkdocs.yml +++ /dev/null @@ -1,4 +0,0 @@ -site_name: MkLorum -nav: - - Home: index.md -theme: readthedocs