Browse Source

Fix problem with registration

JoostSijm 6 years ago
parent
commit
65f1a2d3ed
1 changed files with 2 additions and 5 deletions
  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")