summaryrefslogtreecommitdiff
path: root/docs/quick_tutorial/authentication
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2019-12-31 16:38:44 -0600
committerMichael Merickel <michael@merickel.org>2019-12-31 16:40:17 -0600
commit4255eecf1544731a7200ab0a24671195416601e2 (patch)
tree6093df1281394ac186bf598f8ca3c27626fd4ae2 /docs/quick_tutorial/authentication
parent25439c2dbd4ff971e2a32ac96fc893de0bdcefd3 (diff)
downloadpyramid-4255eecf1544731a7200ab0a24671195416601e2.tar.gz
pyramid-4255eecf1544731a7200ab0a24671195416601e2.tar.bz2
pyramid-4255eecf1544731a7200ab0a24671195416601e2.zip
change hashalg on AuthTktCookieHelper to sha512.
Diffstat (limited to 'docs/quick_tutorial/authentication')
-rw-r--r--docs/quick_tutorial/authentication/tutorial/security.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/docs/quick_tutorial/authentication/tutorial/security.py b/docs/quick_tutorial/authentication/tutorial/security.py
index e8d323ea7..8324000ed 100644
--- a/docs/quick_tutorial/authentication/tutorial/security.py
+++ b/docs/quick_tutorial/authentication/tutorial/security.py
@@ -17,10 +17,7 @@ USERS = {'editor': hash_password('editor'),
class SecurityPolicy:
def __init__(self, secret):
- self.authtkt = AuthTktCookieHelper(
- secret=secret,
- hashalg='sha512',
- )
+ self.authtkt = AuthTktCookieHelper(secret=secret)
def authenticated_identity(self, request):
identity = self.authtkt.identify(request)