Compare commits
3 Commits
cleanup
...
feature/re
Author | SHA1 | Date | |
---|---|---|---|
99bf2fa1f4 | |||
cd4db22e72 | |||
1cf8fbb91d |
4
app.py
4
app.py
@@ -14,7 +14,7 @@ import threading
|
||||
app = Flask(__name__, static_folder='static')
|
||||
app.config['SECRET_KEY'] = os.environ.get('SECRET_KEY', 'dev')
|
||||
app.config['ALLOWED_IP_RANGES'] = os.getenv('ALLOWED_IP_RANGES', '192.168.0.0/16,10.0.0.0/8').split(',')
|
||||
app.config['VERSION'] = '1.2.16'
|
||||
app.config['VERSION'] = '1.2.17'
|
||||
app.config['DATABASE'] = 'data/customers.db'
|
||||
app.config['DATABASE_TIMEOUT'] = 20
|
||||
app.config['DATABASE_POOL_SIZE'] = 5
|
||||
@@ -193,7 +193,7 @@ def login():
|
||||
|
||||
if request.method == 'POST':
|
||||
password = request.form.get('password')
|
||||
if password == STATIC_PASSWORD:
|
||||
if password == os.environ.get('LOGIN_PASSWORD'):
|
||||
session['logged_in'] = True
|
||||
logger.info("Erfolgreicher Login")
|
||||
return redirect(url_for('index'))
|
||||
|
@@ -336,7 +336,10 @@ function displayResults(results) {
|
||||
|
||||
function clearInput(inputId) {
|
||||
document.getElementById(inputId).value = '';
|
||||
searchCustomers();
|
||||
document.getElementById('results').innerHTML = '';
|
||||
document.getElementById('result-count').textContent = '';
|
||||
document.getElementById('exportButton').style.display = 'none';
|
||||
lastResults = [];
|
||||
}
|
||||
|
||||
async function searchCustomers() {
|
||||
|
Reference in New Issue
Block a user