Skip to content

Commit

Permalink
Fixed app
Browse files Browse the repository at this point in the history
  • Loading branch information
Bean0-0 committed Apr 2, 2024
1 parent 6cd4b82 commit 1c6c52f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions app.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import firebase_admin
from flask import Flask, request, jsonify, render_template
from flask import Flask, render_template, request, url_for, redirect
from firebase_admin import db, credentials
from auth.login import auth as auth_blueprint

app = Flask(__name__)

app.register_blueprint(auth_blueprint, url_prefix='/auth')

cred = credentials.Certificate("key.json")
firebase_admin.initialize_app(cred, {"databaseURL":"https://fbla-decfd-default-rtdb.firebaseio.com/"})

Expand Down
2 changes: 1 addition & 1 deletion templates/login.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!-- login.html -->
<div id="loginForm" class="overlay" style="display: none;">
<div class="container">
<form method="POST" action="{{ url_for('auth.login') }}">
<form>{#<form method="POST" action="{{ url_for('auth.login') }}">#}
<label for="username">Username:</label>
<input type="text" id="username" name="username" required>

Expand Down

0 comments on commit 1c6c52f

Please sign in to comment.