|
|
|
|
|
|
|
|
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) |