mud_server.admin_gradio.tabs.register_tab ========================================= .. py:module:: mud_server.admin_gradio.tabs.register_tab .. autoapi-nested-parse:: Register Tab for MUD Client. This module provides the registration interface for creating new user accounts. Visible only when not logged in. Migration Notes: - Migrated from old api_client.py to new modular structure - Uses AuthAPIClient for registration API calls - Extracts message from API response dict for Gradio display Functions --------- .. autoapisummary:: mud_server.admin_gradio.tabs.register_tab.register mud_server.admin_gradio.tabs.register_tab.create Module Contents --------------- .. py:function:: register(username, password, password_confirm) Handle new user account registration. Validates input, sends registration request to backend API via AuthAPIClient, and returns status message indicating success or failure. This function wraps the new AuthAPIClient.register() method to maintain compatibility with the Gradio interface while using the new modular API. :param username: Desired username for new account :param password: Plain text password for new account :param password_confirm: Password confirmation (must match password) :returns: String message indicating registration success or failure .. admonition:: Examples >>> result = register("alice", "password123", "password123") >>> "You can now login" in result True .. py:function:: create() Create the Register tab with account creation form. :returns: (register_tab, register_btn) - Tab component and register button for event wiring :rtype: tuple