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
notes on using the new API, and a first untested stab at that in manifoldAPI
[myslice.git]
/
auth
/
views.py
diff --git
a/auth/views.py
b/auth/views.py
index
c26bc1d
..
2a9ff83
100644
(file)
--- a/
auth/views.py
+++ b/
auth/views.py
@@
-44,7
+44,7
@@
def login_user(request):
# hard question : where should we redirect requests to logout if user is not logged in ?
def logout_user (request):
# hard question : where should we redirect requests to logout if user is not logged in ?
def logout_user (request):
- #
xxx
check that we're indeed logged in
+ # check that we're indeed logged in
if not request.user.is_authenticated():
return HttpResponseRedirect ('/')
logout(request)
if not request.user.is_authenticated():
return HttpResponseRedirect ('/')
logout(request)