From 4bf0a7052b448315eda710857acafe24bb112a5b Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Mon, 14 Nov 2011 07:10:15 +0000 Subject: Change authentication scheme from Form based auth to OpenID + OAuth. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1201614 13f79535-47bb-0310-9956-ffa450edef68 --- sca-cpp/trunk/modules/edit/accounts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sca-cpp/trunk/modules/edit/accounts.py') diff --git a/sca-cpp/trunk/modules/edit/accounts.py b/sca-cpp/trunk/modules/edit/accounts.py index 600134c054..4589f6c0cc 100644 --- a/sca-cpp/trunk/modules/edit/accounts.py +++ b/sca-cpp/trunk/modules/edit/accounts.py @@ -25,7 +25,7 @@ def accountid(user): # Get the current user's account def get(id, user, cache): account = cache.get(accountid(user)) - if isNil(account): + if isNil(account) or account is None: return () return account -- cgit v1.2.3