diff --git a/api/routes.py b/api/routes.py index 4fe16f9..2fc7114 100644 --- a/api/routes.py +++ b/api/routes.py @@ -56,7 +56,7 @@ except ImportError: # ── Login page (self-contained, no external deps) ──────────────────────────── _LOGIN_PAGE_HTML = ''' -Hermes — Sign in +{{BOT_NAME}} — Sign in
- -

Hermes

+ +

{{BOT_NAME}}

Enter your password to continue

bool: if parsed.path == '/login': import html as _html - _bot = _html.escape(load_settings().get('bot_name', 'Hermes')) - _page = _LOGIN_PAGE_HTML.replace( - 'Hermes — Sign in', - f'{_bot} — Sign in', - ).replace('

Hermes

', f'

{_bot}

') + _bn = _html.escape(load_settings().get('bot_name', 'Hermes')) + _page = _LOGIN_PAGE_HTML.replace('{{BOT_NAME}}', _bn).replace('{{BOT_NAME_INITIAL}}', _bn[0].upper()) return t(handler, _page, content_type='text/html; charset=utf-8') if parsed.path == '/api/auth/status':