feat: ctrl+click for new tabs, delete redirect, password change

- Protocol and collection pills now use <a href> instead of <div onclick>,
  so ctrl+click (or cmd+click) opens in a new tab, and middle-click works
- Applied consistently: library, collection detail, user profile
- After deleting a protocol or collection, currentRoute is reset so
  navigation back to the list actually works
- Password change: when viewing your own profile, a 'Change Password'
  button appears. Opens a modal requiring current password + new password
  + confirmation. New API endpoint POST /api/auth/password validates
  the current password and updates the hash.
This commit is contained in:
Protocolbot
2026-07-08 13:50:11 -06:00
parent 6e7c03b373
commit e514e8aca3
4 changed files with 103 additions and 18 deletions
+1
View File
@@ -167,6 +167,7 @@ if ($parts[0] === 'auth') {
elseif ($action === 'logout' && $method === 'POST') handle_logout();
elseif ($action === 'me' && $method === 'GET') handle_me();
elseif ($action === 'sso' && $method === 'POST') handle_sso_callback();
elseif ($action === 'password' && $method === 'POST') handle_password_change();
else respond(404, ['error' => 'Unknown auth endpoint']);
}