def register_boss(): form = RegisterForm() if form.validate_on_submit(): form.create_boss() flash('注册成功,请登录!', 'success') return redirect(url_for('.login')) return render_template('register_boss.html', form=form)
def register_boss(): form = RegisterForm() form.username.label = "企业名称" if form.validate_on_submit(): form.create_boss() flash('注册成功,请登录!', 'success') return redirect(url_for('.login')) return render_template('company_register.html', form=form)