Could you modify my code so it meets the following requirement?
(Python Flask)
I want the user to register for account using email and
password, then store that data into a text file. Then I want the
data to be read when logging in allowing the user to go to home
page.
-------------Code--------------------
routes.py
from flask import Flask, render_template, redirect, url_for, request, session
import json, re
app = Flask(__name__)
'''@app.before_request
def before_request():
if 'visited' not in session:
return render_template("login.html")
else:...