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

@@ -57,7 +57,7 @@ def signup_post():
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.
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
db.session.add(new_user)

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

@@ -16,7 +16,7 @@ class User(UserMixin, db.Model):

id = db.Column(db.Integer, primary_key=True) # primary keys are required by SQLAlchemy
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))

# table for resources

+ 1
- 1
web/requirements.txt View File

@@ -1,6 +1,6 @@
flask
flask-sqlalchemy
werkzeug==2.3
werkzeug
flask-login
flask-moment
gunicorn

Loading…
Cancel
Save