Ejemplo n.º 1
0
def ask_credentials():
    """
    Show some dialogs and ask the user for account credentials
    """
    email = xbmcgui.Dialog().input(heading=common.get_local_string(30005),
                                   type=xbmcgui.INPUT_ALPHANUM) or None
    common.verify_credentials(email)
    password = ask_for_password()
    common.verify_credentials(password)
    return {'email': email.strip(), 'password': password.strip()}
Ejemplo n.º 2
0
def ask_credentials():
    """
    Show some dialogs and ask the user for account credentials
    """
    email = G.py2_decode(
        xbmcgui.Dialog().input(heading=common.get_local_string(30005),
                               type=xbmcgui.INPUT_ALPHANUM)) or None
    common.verify_credentials(email)
    password = ask_for_password()
    common.verify_credentials(password)
    common.set_credentials(email, password)
Ejemplo n.º 3
0
def ask_credentials():
    """
    Show some dialogs and ask the user for account credentials
    """
    email = xbmcgui.Dialog().input(heading=common.get_local_string(30005),
                                   type=xbmcgui.INPUT_ALPHANUM) or None
    common.verify_credentials(email)
    password = xbmcgui.Dialog().input(
        heading=common.get_local_string(30004),
        type=xbmcgui.INPUT_ALPHANUM,
        option=xbmcgui.ALPHANUM_HIDE_INPUT) or None
    common.verify_credentials(password)
    common.set_credentials(email, password)
    return {'email': email, 'password': password}