interactively prompt for passwords on login when none is provided
This commit is contained in:
@@ -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__ = ()
|
||||
|
||||
Reference in New Issue
Block a user