Show More
@@ -330,14 +330,7 b' class LoginRequired(object):' | |||||
330 | return func(*fargs, **fkwargs) |
|
330 | return func(*fargs, **fkwargs) | |
331 | else: |
|
331 | else: | |
332 | log.warn('user %s NOT authenticated', user.username) |
|
332 | log.warn('user %s NOT authenticated', user.username) | |
333 |
|
333 | p = url.current() | ||
334 | p = '' |
|
|||
335 | if request.environ.get('SCRIPT_NAME') != '/': |
|
|||
336 | p += request.environ.get('SCRIPT_NAME') |
|
|||
337 |
|
||||
338 | p += request.environ.get('PATH_INFO') |
|
|||
339 | if request.environ.get('QUERY_STRING'): |
|
|||
340 | p += '?' + request.environ.get('QUERY_STRING') |
|
|||
341 |
|
334 | |||
342 | log.debug('redirecting to login page with %s', p) |
|
335 | log.debug('redirecting to login page with %s', p) | |
343 | return redirect(url('login_home', came_from=p)) |
|
336 | return redirect(url('login_home', came_from=p)) |
General Comments 0
You need to be logged in to leave comments.
Login now