Browse Source

updating werkzeug

practices
Simon Bowie 1 year ago
parent
commit
88e70b3f2d
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      web/app/auth.py
  2. +1
    -1
      web/app/models.py
  3. +1
    -1
      web/requirements.txt

+ 1
- 1
web/app/auth.py View File

return redirect(url_for('auth.signup',_external=True,_scheme=os.environ.get('SSL_SCHEME'))) return redirect(url_for('auth.signup',_external=True,_scheme=os.environ.get('SSL_SCHEME')))


# create a new user with the form data. Hash the password so the plaintext version isn't saved. # create a new user with the form data. Hash the password so the plaintext version isn't saved.
new_user = User(email=email, name=name, password=generate_password_hash(password, method='sha256'))
new_user = User(email=email, name=name, password=generate_password_hash(password, method='scrypt'))


# add the new user to the database # add the new user to the database
db.session.add(new_user) db.session.add(new_user)

+ 1
- 1
web/app/models.py View File



id = db.Column(db.Integer, primary_key=True) # primary keys are required by SQLAlchemy id = db.Column(db.Integer, primary_key=True) # primary keys are required by SQLAlchemy
email = db.Column(db.String(100), unique=True) email = db.Column(db.String(100), unique=True)
password = db.Column(db.String(100))
password = db.Column(db.String(1000))
name = db.Column(db.String(1000)) name = db.Column(db.String(1000))


# table for resources # table for resources

+ 1
- 1
web/requirements.txt View File

flask flask
flask-sqlalchemy flask-sqlalchemy
werkzeug==2.3
werkzeug
flask-login flask-login
flask-moment flask-moment
gunicorn gunicorn

Loading…
Cancel
Save