Merge pull request #1525 from michele-comitini/confirm_registration_redirect_fix

keep the _next while doing the redirect
This commit is contained in:
mdipierro authored and GitHub committed 2016-11-14 08:27:39 -06:00
commit 091d9c74b0
1 file changed
+6 -1
+6 -1
View File
@@ -3672,7 +3672,12 @@ class Auth(object):
key = request.args[-1] key = request.args[-1]
if key: if key:
session._reset_password_key = key session._reset_password_key = key
redirect(self.url(args='confirm_registration')) if next:
redirect_vars = {'_next': next}
else:
redirect_vars = {}
redirect(self.url(args='confirm_registration',
vars=redirect_vars))
else: else:
key = session._reset_password_key key = session._reset_password_key
else: else: