@app.route('/auth/register', methods=['POST'])
def register_user():
    email = request.form['email']
    password = request.form['password']
    confirm_password = request.form['confirm-password']
    if (password == confirm_password):
        User.register(email, password)
    else:
        return render_template('register.html')
    return render_template('register-success.html', email=session['email'])
@app.route('/auth/register', methods=['POST'])
def register_user():
    email = request.form['email']
    password = request.form['password']
    confirm_password = request.form['confirm-password']
    if (password == confirm_password):
        User.register(email, password)
    else:
        return render_template('register.html')
    return render_template('register-success.html', email=session['email'])