added hashing, updated parts of readme to explain env file
also added some tabby stuff, but its not done yet
This commit is contained in:
parent
37945ccced
commit
4f39417852
5 changed files with 65 additions and 38 deletions
|
|
@ -2,7 +2,7 @@ from flask import Flask
|
|||
from flask import request
|
||||
from flask_cors import CORS
|
||||
import sqlite3 as sql
|
||||
import vlc,threading,time,random,argparse,dotenv,os
|
||||
import vlc,threading,time,random,argparse,dotenv,os,hashlib
|
||||
# Argparse Stuff
|
||||
parser=argparse.ArgumentParser(description="Options for the Webby Bits")
|
||||
# parser.add_argument('-p','--port',help="Port to host on, not the same as the web (client) port",default='19054')
|
||||
|
|
@ -14,7 +14,7 @@ portTheUserPicked=os.getenv("SERVER_PORT")
|
|||
# This is not great design, and the whole "returning string codes" thing is something to add to the todo list
|
||||
# I mean returning 200 when no return is necesary i think is fine but we'll see
|
||||
ERR_NO_ADMIN = "401"
|
||||
ADMIN_PASS = args.admin
|
||||
ADMIN_PASS = hashlib.sha256(bytes(args.admin,'utf-8')).hexdigest()
|
||||
if not(ADMIN_PASS):
|
||||
ADMIN_PASS = None
|
||||
# True = everyone, False = admin only. Change in client while in use.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue