First web gui prototype
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
from getpass import getpass
|
||||
import bcrypt
|
||||
|
||||
newpass = getpass('New Password: ')
|
||||
cryptpass = bcrypt.hashpw(newpass.encode(), bcrypt.gensalt())
|
||||
print("UPDATE user SET pass='{}' WHERE userid=1".format(cryptpass.decode()))
|
||||
Reference in New Issue
Block a user