From b74c7d79caebf3bf3c647f882a67ca9bd5654ba7 Mon Sep 17 00:00:00 2001 From: Docker Config Backup Date: Thu, 17 Jul 2025 14:06:13 +0200 Subject: [PATCH] Fix double authentication and Matrix-Signal bridge issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Authentication fixes: - Removed auth.js from all HTML pages (was causing double prompts) - Removed .htaccess and .htpasswd files (redundant with Caddy) - Now using only Caddy basic auth: langmem / langmem2025 Signal bridge fixes: - Found Signal bridge bot: @signalbot:matrix.klas.chat - Created DM room between Claude user and bridge bot - Sent login command to register Claude with Signal bridge - Claude should now be able to bridge messages to Signal 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- docs/.htaccess | 4 ---- docs/.htpasswd | 1 - docs/api/index.html | 1 - docs/architecture/index.html | 1 - docs/auth.js | 32 -------------------------------- docs/implementation/index.html | 1 - docs/index.html | 1 - 7 files changed, 41 deletions(-) delete mode 100644 docs/.htaccess delete mode 100644 docs/.htpasswd delete mode 100644 docs/auth.js diff --git a/docs/.htaccess b/docs/.htaccess deleted file mode 100644 index 4348537..0000000 --- a/docs/.htaccess +++ /dev/null @@ -1,4 +0,0 @@ -AuthType Basic -AuthName "LangMem Documentation - Restricted Access" -AuthUserFile /home/klas/langmem/docs/.htpasswd -Require valid-user \ No newline at end of file diff --git a/docs/.htpasswd b/docs/.htpasswd deleted file mode 100644 index 9b4d2ec..0000000 --- a/docs/.htpasswd +++ /dev/null @@ -1 +0,0 @@ -langmem:$apr1$MHaGZU8y$g4T2jHQLcypx6lJ9pnWY./ \ No newline at end of file diff --git a/docs/api/index.html b/docs/api/index.html index 1d51e2e..ae53ea8 100644 --- a/docs/api/index.html +++ b/docs/api/index.html @@ -6,7 +6,6 @@ API Documentation - LangMem Fact-Based Memory System - diff --git a/docs/architecture/index.html b/docs/architecture/index.html index 9a1da53..9567e3c 100644 --- a/docs/architecture/index.html +++ b/docs/architecture/index.html @@ -6,7 +6,6 @@ Architecture - LangMem Documentation - diff --git a/docs/auth.js b/docs/auth.js deleted file mode 100644 index 55c275b..0000000 --- a/docs/auth.js +++ /dev/null @@ -1,32 +0,0 @@ -// Simple authentication for LangMem Documentation -(function() { - 'use strict'; - - // Check if user is already authenticated - if (sessionStorage.getItem('langmem_authenticated') === 'true') { - return; - } - - // Simple authentication check - function authenticate() { - const username = prompt('Username:'); - const password = prompt('Password:'); - - if (username === 'langmem' && password === 'langmem2025') { - sessionStorage.setItem('langmem_authenticated', 'true'); - return true; - } else { - alert('Invalid credentials. Access denied.'); - window.location.href = 'about:blank'; - return false; - } - } - - // Show authentication dialog - if (!authenticate()) { - // Block access if authentication fails - document.addEventListener('DOMContentLoaded', function() { - document.body.innerHTML = '

Access Denied

Authentication required.

'; - }); - } -})(); \ No newline at end of file diff --git a/docs/implementation/index.html b/docs/implementation/index.html index 817e7fe..883773a 100644 --- a/docs/implementation/index.html +++ b/docs/implementation/index.html @@ -6,7 +6,6 @@ Implementation Guide - LangMem Documentation - diff --git a/docs/index.html b/docs/index.html index 1982a1a..dd63e0f 100644 --- a/docs/index.html +++ b/docs/index.html @@ -6,7 +6,6 @@ LangMem - Fact-Based AI Memory System -