diff options
| author | Theron Luhn <theron@luhn.com> | 2019-04-15 19:04:35 -0700 |
|---|---|---|
| committer | Theron Luhn <theron@luhn.com> | 2019-04-15 19:04:35 -0700 |
| commit | 47f8935bb5423718ec293bba4709307be7d2f51c (patch) | |
| tree | 2ef48e54dfbf82c9aa52a7fe1ef1fb6cac1ffb48 /src | |
| parent | 8536f3ab834b4da7cc24a88855a3f883929b5b1e (diff) | |
| download | pyramid-47f8935bb5423718ec293bba4709307be7d2f51c.tar.gz pyramid-47f8935bb5423718ec293bba4709307be7d2f51c.tar.bz2 pyramid-47f8935bb5423718ec293bba4709307be7d2f51c.zip | |
Stringify identity in legacy authenticated_userid.
Diffstat (limited to 'src')
| -rw-r--r-- | src/pyramid/security.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pyramid/security.py b/src/pyramid/security.py index e28ce0f1c..a55320ce6 100644 --- a/src/pyramid/security.py +++ b/src/pyramid/security.py @@ -355,7 +355,7 @@ class AuthenticationAPIMixin(object): if authn is not None: return authn.authenticated_userid(self) elif security is not None: - return security.identify(self) + return str(security.identify(self)) else: return None |
