Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
remove logging import
add better naming scheme
add short description
  • Loading branch information
LucifersCircle committed Dec 7, 2024
1 parent 3ef7bcb commit e6f089d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import re
import sqlite3
import hashlib
import logging

from flask import Flask, request, jsonify, render_template_string
from cryptography.fernet import Fernet
Expand Down Expand Up @@ -51,7 +50,7 @@ def initialize_db():
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Key Management</title>
<title>WTR</title>
<style>
body {
font-family: Arial, sans-serif;
Expand Down Expand Up @@ -119,7 +118,7 @@ def initialize_db():
</head>
<body>
<div class="container">
<h1>Key Management</h1>
<h1>WebOS Token Refresher</h1>
<form action="/" method="post">
<input type="text" name="key" placeholder="Enter your key" required>
<button type="submit" name="action" value="add">Add Key</button>
Expand All @@ -132,6 +131,9 @@ def initialize_db():
">{{ message }}</div>
{% endif %}
<p class="description">
This page allows you to securely add or remove your developer mode session token for LG WebOS. Tokens are hashed, encrypted, stored, and periodically refreshed with the LG Developer API to keep your session active.
</p>
</div>
<div class="footer">
<p>Check out the source code on <a href="https://github.com/LucifersCircle/webOS-Token-Refresh" target="_blank">GitHub</a>.</p>
Expand Down

0 comments on commit e6f089d

Please sign in to comment.