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:
Scoder12
2020-08-10 19:00:01 -07:00
parent 9f0cc538a6
commit 82fca56318
+1 -1
View File
@@ -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):