From 3d34d658e6f88d56f8ccf6c2ad4bceaa7b23e18b Mon Sep 17 00:00:00 2001 From: Theron Luhn Date: Sat, 8 Jun 2019 11:41:02 -0700 Subject: Fix bw-compat for `unauthenticated_userid`. --- src/pyramid/security.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/pyramid/security.py b/src/pyramid/security.py index fd05746bd..eb5ba3e19 100644 --- a/src/pyramid/security.py +++ b/src/pyramid/security.py @@ -360,7 +360,7 @@ class AuthenticationAPIMixin(object): if authn is not None: return authn.unauthenticated_userid(self) elif security is not None: - return security.identify(self) + return str(security.identify(self)) else: return None -- cgit v1.2.3