@account.route('/confirm-account/<token>')
@login_required
def confirm(token):
    if current_user.confirmed:
        return redirect(url_for('main.index'))
    if current_user.confirm_account(token):
        flash('Your account has been confirmed.', 'success')
    else:
        flash('The confirmation link is invalid or has expired.', 'error')
    return redirect(url_for('main.index'))
Confirm new user's account with provided token.
dataset/ETHPy150Open hack4impact/flask-base/app/account/views.py/confirm