@bp.route('<STR_LIT>', methods=['<STR_LIT:GET>', '<STR_LIT:POST>'])<EOL>@VisitorPermission()<EOL>def signup():
form = SignupForm()<EOL>if form.validate_on_submit():<EOL><INDENT>params = form.data.copy()<EOL>params.pop('<STR_LIT>')<EOL>user = User(**params)<EOL>db.session.add(user)<EOL>db.session.commit()<EOL>signin_user(user)<EOL>return redirect(url_for('<STR_LIT>'))<EOL><DEDENT>return render_template('<STR_LIT>', form=form)<EOL>
Signup