Example #1
0
def index():
    """ Show the profile selection, or go to the main menu. """
    # Verify credentials
    from resources.lib.modules.authentication import Authentication
    if not Authentication.verify_credentials():
        kodiutils.end_of_directory()
        kodiutils.execute_builtin('ActivateWindow(Home)')
        return

    if kodiutils.get_setting_bool('auto_login') and kodiutils.get_setting('profile'):
        show_main_menu()
    else:
        select_profile()
Example #2
0
def select_profile(key=None):
    """ Select your profile """
    from resources.lib.modules.authentication import Authentication
    Authentication().select_profile(key)
Example #3
0
def show_login_menu():
    """ Show the login menu """
    from resources.lib.modules.authentication import Authentication
    Authentication().login()
Example #4
0
def auth_clear_tokens():
    """ Clear the authentication tokens """
    from resources.lib.modules.authentication import Authentication
    Authentication().clear_tokens()
Example #5
0
def auth_clear_tokens():
    """ Update the metadata for the listings (called from settings) """
    from resources.lib.modules.authentication import Authentication
    Authentication().clear_tokens()