Skip to content

fix(login): add protocol selector and auto-normalize admin API URL#3

Open
KamyarAT wants to merge 1 commit into
themadorg:mainfrom
KamyarAT:fix/login-api-url-protocol
Open

fix(login): add protocol selector and auto-normalize admin API URL#3
KamyarAT wants to merge 1 commit into
themadorg:mainfrom
KamyarAT:fix/login-api-url-protocol

Conversation

@KamyarAT

@KamyarAT KamyarAT commented Jun 29, 2026

Copy link
Copy Markdown

Summary

  • Split the login Admin API URL field into a protocol dropdown (HTTPS default, HTTP for local/dev) and a host/path input
  • Auto-normalize URLs on connect and when loading saved credentials
  • Parse pasted full URLs into the protocol + host fields

Test plan

  • Enter your-server.com/api/admin with HTTPS selected and connect successfully
  • Switch to HTTP and connect to a local HTTP admin endpoint
  • Paste https://host/api/admin and confirm fields split correctly
  • Scan QR / load saved server and confirm protocol + host populate correctly

Users could not log in when the Admin API URL omitted https:// because
the field required a full URL. Split the login input into a protocol
dropdown (default HTTPS) and host/path field, normalize URLs on connect,
and accept pasted full URLs by splitting them into both controls.
@KamyarAT KamyarAT closed this Jun 29, 2026
@KamyarAT KamyarAT reopened this Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant