コード例 #1
0
ファイル: utils.py プロジェクト: freedomofpress/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
コード例 #2
0
ファイル: manage.py プロジェクト: singuliere/securedrop
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
ファイル: manage.py プロジェクト: freedomofpress/securedrop
def _make_password():
    while True:
        password = crypto_util.genrandomid(7)
        try:
            Journalist.check_password_acceptable(password)
            return password
        except PasswordError:
            continue