interactively prompt for passwords on login when none is provided

This commit is contained in:
Mike Fährmann
2023-12-06 21:31:31 +01:00
parent db978b34f1
commit 9dd5cb8c8a
3 changed files with 14 additions and 2 deletions

View File

@@ -14,6 +14,7 @@ import sys
import json
import time
import random
import getpass
import hashlib
import sqlite3
import binascii
@@ -487,6 +488,13 @@ CODES = {
}
class LazyPrompt():
__slots__ = ()
def __str__(self):
return getpass.getpass()
class CustomNone():
"""None-style type that supports more operations than regular None"""
__slots__ = ()