Skip to content

Commit

Permalink
admin pass update
Browse files Browse the repository at this point in the history
  • Loading branch information
ozdemirozcelik committed Apr 5, 2023
1 parent 63550b1 commit 98d5970
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion resources/users.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
from datetime import timedelta
from flask import request
from flask_restful import Resource, reqparse
Expand Down Expand Up @@ -48,8 +49,10 @@ class UserRegister(Resource):
def default_users():
from app import configs

os.environ.get("DATABASE_URL_SQLALCHEMY", "sqlite:///data.db")

admin_username = configs.get("SECRET", "ADMIN_USERNAME")
admin_password = configs.get("SECRET", "ADMIN_PASSWORD")
admin_password = os.environ.get("DB_ADMIN_PASS", configs.get("SECRET", "ADMIN_PASSWORD"))
user1_username = configs.get("SECRET", "USER1_USERNAME")
user1_password = configs.get("SECRET", "USER1_PASSWORD")

Expand Down

0 comments on commit 98d5970

Please sign in to comment.