Skip to content
New issue

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

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

Already on GitHub? # to your account

Set default hostname on form without specifying a username or logging in #395

Open
abcbarryn opened this issue Oct 9, 2024 · 1 comment

Comments

@abcbarryn
Copy link

If I add ?hostname=foo to the URL the hostname does not populate in the webform unless I do ?hostname=foo&username=bar but then it automatically attempt to login once and fails because there is no password. I would like to be able to pass a default hostname but leave the username field blank and wait for the user to fill in the form before attempting to login.

@abcbarryn
Copy link
Author

I edited main.js and commented out these 3 lines and that seems to give me the exact behavior that I want...

//    if (!username) {
//      errors.push('Value of username is required.');
//    }

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant