(remove): Removed temp comments
This commit is contained in:
parent
51f154ab73
commit
1652079874
2 changed files with 1 additions and 2 deletions
|
|
@ -10,7 +10,6 @@ class User(db.Model):
|
||||||
|
|
||||||
def __init__(self, username, password, hash_password=True):
|
def __init__(self, username, password, hash_password=True):
|
||||||
self.username = username
|
self.username = username
|
||||||
# Optionally hash the password automatically.
|
|
||||||
if hash_password:
|
if hash_password:
|
||||||
self.password = generate_password_hash(password, method="pbkdf2:sha256")
|
self.password = generate_password_hash(password, method="pbkdf2:sha256")
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ load_dotenv()
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
CORS(app)
|
CORS(app)
|
||||||
|
|
||||||
app.config['SQLALCHEMY_DATABASE_URI'] = os.getenv('DATABASE') # Or use DATABASE_URI from models
|
app.config['SQLALCHEMY_DATABASE_URI'] = os.getenv('DATABASE')
|
||||||
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
|
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
|
||||||
|
|
||||||
init_db(app)
|
init_db(app)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue