@@ -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) |
@@ -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,6 +1,6 @@ | |||
flask | |||
flask-sqlalchemy | |||
werkzeug==2.3 | |||
werkzeug | |||
flask-login | |||
flask-moment | |||
gunicorn |