git://git.onelab.eu
/
myslice.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Session: avoid error
[myslice.git]
/
portal
/
homeview.py
diff --git
a/portal/homeview.py
b/portal/homeview.py
index
5fea636
..
a613532
100644
(file)
--- a/
portal/homeview.py
+++ b/
portal/homeview.py
@@
-60,7
+60,7
@@
class HomeView (FreeAccessView, ThemeView):
# user was authenticated at the backend
elif auth_result is not None:
user=auth_result
- if user.is_active:
+ if user
is not None and user
.is_active:
login(request, user)
if request.user.is_authenticated():