浏览代码

updating werkzeug

practices
Simon Bowie 1年前
父节点
当前提交
88e70b3f2d
共有 3 个文件被更改,包括 3 次插入3 次删除
  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 查看文件

@@ -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 查看文件

@@ -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 查看文件

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

正在加载...
取消
保存