mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-06-29 03:26:16 +00:00
Internal Screaming
This commit is contained in:
parent
896fdb8e8a
commit
9cfb8befd2
6 changed files with 18 additions and 19 deletions
|
@ -71,9 +71,10 @@ class Configuration:
|
|||
|
||||
print("""
|
||||
####################################################
|
||||
# PLEASE NOTE DOWN THE FLASK_SECRET KEY LOCARED IN #
|
||||
# YOUR .config/onlylegs/.env FILE! A NEW KEY WAS #
|
||||
# GENERATED FOR YOU! #
|
||||
# A NEW KEY WAS GENERATED FOR YOU! PLEASE NOTE #
|
||||
# DOWN THE FLASK_SECRET KEY LOCATED IN YOUR #
|
||||
# .config/onlylegs/.env FOLDER! LOOSING THIS KEY #
|
||||
# WILL RESULT IN YOU BEING UNABLE TO LOG IN! #
|
||||
####################################################
|
||||
""")
|
||||
|
||||
|
@ -86,14 +87,11 @@ class Configuration:
|
|||
email_regex = re.compile(r'\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b')
|
||||
username_regex = re.compile(r'\b[A-Za-z0-9._%+-]+\b')
|
||||
|
||||
print("No config file found, please enter the following information:")
|
||||
while not is_correct:
|
||||
try:
|
||||
username = input("Admin username: ")
|
||||
name = input("Admin name: ")
|
||||
email = input("Admin email: ")
|
||||
except ValueError:
|
||||
print("Please enter valid values!")
|
||||
print("\nNo config file found, please enter the following information:")
|
||||
while not is_correct:
|
||||
username = input("Admin username: ")
|
||||
name = input("Admin name: ")
|
||||
email = input("Admin email: ")
|
||||
|
||||
# Check if the values are valid
|
||||
if not username or not username_regex.match(username):
|
||||
|
@ -130,7 +128,7 @@ class Configuration:
|
|||
},
|
||||
'website': {
|
||||
'name': 'OnlyLegs',
|
||||
'motto': 'A gallery built for fast and simple image management. You can change this in the settings',
|
||||
'motto': 'A gallery built for fast and simple image management!',
|
||||
'language': 'en',
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
from gunicorn.app.base import Application
|
||||
from gunicorn import util
|
||||
|
||||
|
||||
class OnlyLegs(Application):
|
||||
def __init__(self, options={}):
|
||||
self.usage = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue