Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect home server from matrix id #810

Open
wants to merge 22 commits into
base: master
Choose a base branch
from

Conversation

Kaki-In
Copy link
Contributor

@Kaki-In Kaki-In commented Jul 21, 2022

Detect home server from matrix id

Added functionnality :

  • you can now enter the user matrix id (e.g. @username:server.local) in the login input.
  • if the home server that you've entered into youre id is not the same that those into the home server input, it will be use instead to connect to the default matrix server.

Should fix this issue (#479).

@Kaki-In Kaki-In changed the title Detect hs from mxid Detect home server from matrix id Jul 21, 2022
Copy link
Contributor

@bwindels bwindels left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few comments, haven't done a full review yet.

src/domain/login/PasswordLoginViewModel.js Outdated Show resolved Hide resolved
src/domain/login/PasswordLoginViewModel.js Outdated Show resolved Hide resolved
…s) :

 - fix methods miss;
 - corrected some identation mistakes.
PasswordLoginViewModel.parseUsernameLogin() should return the username, not the servername.
Copy link
Contributor

@MidhunSureshR MidhunSureshR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments and questions:

src/platform/web/ui/login/PasswordLoginView.js Outdated Show resolved Hide resolved
src/platform/web/ui/login/PasswordLoginView.js Outdated Show resolved Hide resolved
src/domain/login/PasswordLoginViewModel.js Outdated Show resolved Hide resolved
src/domain/login/PasswordLoginViewModel.js Outdated Show resolved Hide resolved
src/domain/login/PasswordLoginViewModel.js Outdated Show resolved Hide resolved
src/domain/login/PasswordLoginViewModel.js Outdated Show resolved Hide resolved
src/platform/web/ui/login/PasswordLoginView.js Outdated Show resolved Hide resolved
src/matrix/common.js Outdated Show resolved Hide resolved
Copy link
Contributor

@MidhunSureshR MidhunSureshR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some more ts changes:

src/domain/login/LoginViewModel.ts Outdated Show resolved Hide resolved
src/domain/login/LoginViewModel.ts Outdated Show resolved Hide resolved
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.

Support .well-known in the way the spec says
3 participants