Added beginning of login functionality

This commit is contained in:
2026-01-05 15:08:29 -05:00
parent 3b7798369f
commit 46af0fb959
18 changed files with 1402 additions and 1 deletions

14
main.py
View File

@@ -7,6 +7,7 @@ from api.child_api import child_api
from api.image_api import image_api
from api.reward_api import reward_api
from api.task_api import task_api
from api.auth_api import auth_api, mail
from config.version import get_full_version
from events.broadcaster import Broadcaster
from events.sse import sse_response_for_user, send_to_user
@@ -28,6 +29,19 @@ app.register_blueprint(child_api)
app.register_blueprint(reward_api)
app.register_blueprint(task_api)
app.register_blueprint(image_api)
app.register_blueprint(auth_api)
app.config.update(
MAIL_SERVER='smtp.gmail.com',
MAIL_PORT=587,
MAIL_USE_TLS=True,
MAIL_USERNAME='ryan.kegel@gmail.com',
MAIL_PASSWORD='ruyj hxjf nmrz buar',
MAIL_DEFAULT_SENDER='ryan.kegel@gmail.com',
FRONTEND_URL='https://localhost:5173' # Adjust as needed
)
mail.init_app(app)
CORS(app)
@app.route("/version")