def add_signup() -> str: form = SignUpForm(request.form, auth.person_id(), auth.mtgo_username()) if form.validate(): d = lg.signup(form) response = make_response(redirect(url_for('deck', deck_id=d.id))) response.set_cookie('deck_id', str(d.id)) return response return signup(form)
def add_signup(): form = SignUpForm(request.form) if form.validate(): d = lg.signup(form) response = make_response(redirect(url_for('deck', deck_id=d.id))) response.set_cookie('deck_id', str(d.id)) return response return signup(form)
def signup(form: Optional[SignUpForm] = None) -> str: if form is None: form = SignUpForm(request.form, auth.person_id(), auth.mtgo_username()) view = SignUp(form, auth.person_id()) return view.page()
def signup(form=None): if form is None: form = SignUpForm(request.form) view = SignUp(form) return view.page()
def signup(form=None): if form is None: form = SignUpForm(request.form, auth.logged_person(), auth.logged_person_mtgo_username()) view = SignUp(form, auth.logged_person()) return view.page()