@app.route('/')
def index():
checkConfirm(current_user)
return render_template('index.html')
def checkConfirm(user):
if user.verification == True and user.is_authenticated :
print('kek')
return redirect(url_for('reg.confirmed'))
@reg.route('/confirmed')
def confirmed():
return render_template('reg/confirm.html')