예제 #1
0
def make_password(config):
    while True:
        password = crypto_util.genrandomid(7, i18n.get_language(config))
        try:
            Journalist.check_password_acceptable(password)
            return password
        except PasswordError:
            continue
예제 #2
0
def _make_password():
    while True:
        password = crypto_util.genrandomid(7)
        try:
            Journalist.check_password_acceptable(password)
            return password
        except PasswordError:
            continue
예제 #3
0
파일: utils.py 프로젝트: zyphlar/securedrop
def make_password(config):
    while True:
        password = crypto_util.genrandomid(7, i18n.get_language(config))
        try:
            Journalist.check_password_acceptable(password)
            return password
        except PasswordError:
            continue
예제 #4
0
def _make_password():
    while True:
        password = crypto_util.genrandomid(7)
        try:
            Journalist.check_password_acceptable(password)
            return password
        except PasswordError:
            continue