Explorar o código

Fix problem with registration

JoostSijm %!s(int64=6) %!d(string=hai) anos
pai
achega
65f1a2d3ed
Modificáronse 1 ficheiros con 2 adicións e 5 borrados
  1. 2 5
      app/modules/auth/app.py

+ 2 - 5
app/modules/auth/app.py

@@ -82,12 +82,9 @@ def register():
 
     db.session.add(user)
     db.session.commit()
-    login_user(user, remember=True)
-    flash('Successfully registered account "%s".' % (user.name), 'success')
 
-    if request.args.get("next") is not None:
-        return redirect(request.args.get("next"))
-    return redirect(url_for('static.index'))
+    flash('Successfully registered account "%s". Wait for verfication.' % (user.name), 'success')
+    return render_template('login.j2')
 
 
 @BLUEPRINT.route("/logout")