summaryrefslogtreecommitdiff
path: root/docs/lib/passlib.totp-tutorial.rst
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2016-11-08 16:55:58 -0500
committerEli Collins <elic@assurancetechnologies.com>2016-11-08 16:55:58 -0500
commit5152028127dc266890c9fc162faa9db8a0e949ad (patch)
tree226a5b81e901d16622dbf9c05855b3d1b4b9239b /docs/lib/passlib.totp-tutorial.rst
parent1321b645f26e4a707b7f85edc743070d6193bf70 (diff)
downloadpasslib-5152028127dc266890c9fc162faa9db8a0e949ad.tar.gz
totp: added TOTP.from_source() frontend which detects serialization format,
and added TOTP.from_dict() for explicitly deserializing from dict format.
Diffstat (limited to 'docs/lib/passlib.totp-tutorial.rst')
-rw-r--r--docs/lib/passlib.totp-tutorial.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/lib/passlib.totp-tutorial.rst b/docs/lib/passlib.totp-tutorial.rst
index 51b7401..f0f0a8c 100644
--- a/docs/lib/passlib.totp-tutorial.rst
+++ b/docs/lib/passlib.totp-tutorial.rst
@@ -150,12 +150,12 @@ and they support storing the keys in an encrypted fashion (see :ref:`totp-contex
For cases where a python dictionary is more useful than a json string,
the :meth:`TOTP.to_dict` method returns a python dict identical to parsing
the output of :meth:`TOTP.to_json`. This value can be reconstructed
-via :func:`from_json`, which will autodetect whether the input
+via :func:`from_source`, which will autodetect whether the input
is a dictionary vs string.
.. seealso::
- For more details, see the :meth:`~passlib.totp.TOTP.from_json` constructor,
+ For more details, see the :meth:`~passlib.totp.TOTP.from_source` constructor,
and the :meth:`~passlib.totp.TOTP.to_json` method;
as well as the stateful usage & OTPContext usage tutorials below.