Permalink
Browse files

fix

  • Loading branch information...
1 parent 8e3561a commit 0cc15a04c6b0cf32be0f2691839649bbd8622d9a @klen committed Sep 29, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 base/auth/views.py
View
@@ -28,7 +28,8 @@ def login():
if user and user.check_password(form.password.data):
auth.login(user)
flash(_('Welcome %(user)s', user=user.username))
- return redirect(url_for('auth.profile'))
+ redirect_name = current_app.config.get('AUTH_PROFILE_VIEW', 'auth.profile')
+ return redirect(url_for(redirect_name))
flash(_('Wrong email or password'), 'error-message')
return redirect(request.referrer or url_for(auth._login_manager.login_view))

0 comments on commit 0cc15a0

Please sign in to comment.