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

Hide user id & password input if local session already exists #286

Open
aaravlu opened this issue Dec 5, 2024 · 1 comment
Open

Hide user id & password input if local session already exists #286

aaravlu opened this issue Dec 5, 2024 · 1 comment

Comments

@aaravlu
Copy link
Contributor

aaravlu commented Dec 5, 2024

No description provided.

@aaravlu aaravlu changed the title Hide username & password input if local session already exists. Hide username & password input if local session already exists Dec 5, 2024
@aaravlu aaravlu changed the title Hide username & password input if local session already exists Hide user id & password input if local session already exists Dec 5, 2024
@kevinaboos
Copy link
Member

yeah, this is on my to-do list too. Instead of fully hiding the input fields, what I'd like to do is send an action to the LoginScreen with the username being logged into such that we can display that username to the user, and then gray out the fields and the "Login" button while the auto-login procedure is underway.

I actually already built this concept into the LoginAction enum here:

/// Login credentials that should be filled into the login screen,
/// which get sent from the main function that parses CLI arguments.
AutofillInfo {
user_id: String,
password: String,
homeserver: Option<String>,
},

it just hasn't been implemented by the LoginScreen itself.

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

No branches or pull requests

2 participants