Skip to content

Commit

Permalink
fixed redirect url to accounts.login
Browse files Browse the repository at this point in the history
  • Loading branch information
invader-x committed Sep 17, 2011
1 parent 4118f78 commit 844e2b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cyclonejet/views/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def login_required(f):
@wraps(f)
def decorated_function(*args, **kwargs):
if 'logged_in' not in session or session['logged_in'] is None:
return redirect(url_for('.login'))
return redirect(url_for('accounts.login'))
return f(*args, **kwargs)
return decorated_function

Expand Down

0 comments on commit 844e2b5

Please sign in to comment.