示例#1
0
def profile():
    form = UserProfileForm(obj=current_user)
    if form.validate_on_submit():
        form.updated_profile(current_user)
        flash('update info success', 'success')
        return redirect(url_for('front.index'))
    return render_template('user/profile.html', form=form)
示例#2
0
def profile():
    form = UserProfileForm(obj=current_user)
    if form.validate_on_submit():
        form.updated_profile(current_user)
        flash('个人信息更新成功', 'success')
        return redirect(url_for('front.index'))
    return render_template('user/profile.html', form=form)
示例#3
0
def profile():
    form = UserProfileForm(obj=current_user)
    if form.validate_on_submit():
        form.updated_profile(current_user)
        flash('信息更新成功', 'success')
        return redirect(url_for('user.user_detail'))
    return render_template('user/userprofile.html',form=form)
示例#4
0
def profile():
    form = UserProfileForm(obj=current_user)
    if form.validate_on_submit():
        set_resume.save(form.resume.data, name=form.name_resume())
        form.updated_profile(current_user)
        flash('个人信息更新成功', 'success')
        return redirect(url_for('front.index'))
    return render_template('user/profile.html', form=form)
示例#5
0
def profile():
    """
    个人信息配置
    """
    form = UserProfileForm(obj=current_user)
    if form.validate_on_submit():
        form.updated_profile(current_user)
        flash("个人信息更新成功", "success")
        return redirect(url_for("front.index"))
    return render_template("user/profile.html", form=form)