Merge branch 'master' of github.com:failedxyz/easyctf
This commit is contained in:
commit
be7cf1f819
1 changed files with 0 additions and 12 deletions
|
@ -1,21 +1,9 @@
|
|||
import datetime
|
||||
import MySQLdb
|
||||
import random
|
||||
import string
|
||||
|
||||
from werkzeug.security import generate_password_hash, check_password_hash
|
||||
|
||||
host = "localhost"
|
||||
user = "root"
|
||||
|
||||
conn = MySQLdb.connect()
|
||||
|
||||
def get_connection():
|
||||
global conn
|
||||
if not conn:
|
||||
conn = MySQLdb.connect(host=host, user=user)
|
||||
return conn
|
||||
|
||||
def hash_password(s):
|
||||
return generate_password_hash(s)
|
||||
|
||||
|
|
Loading…
Reference in a new issue