Newer
Older
thu-learn-downloader-optimized / thu_learn_downloader / login / auto.py
@liblaf liblaf on 1 Dec 2023 378 bytes ci: sync with template repository
from . import bitwarden


def username() -> str:
    try:
        username: str = bitwarden.username()
        if username:
            return username
    except Exception:
        pass
    return ""


def password() -> str:
    try:
        password: str = bitwarden.password()
        if password:
            return password
    except Exception:
        pass
    return ""