mirror of
https://github.com/kennethreitz/replit-py.git
synced 2026-06-05 23:10:18 +00:00
Fix bug with auth.signed_in
If header doesn't exist, name will be None, which is not equal to an empty string making signed_in pass. Changed to bool because None and empty string are both falsey
This commit is contained in:
@@ -39,7 +39,7 @@ class ReplitAuthContext:
|
||||
Returns:
|
||||
bool: whether or not the authentication is activated.
|
||||
"""
|
||||
return self.name != ""
|
||||
return bool(self.name)
|
||||
|
||||
|
||||
class Request(flask.Request):
|
||||
|
||||
Reference in New Issue
Block a user