We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
term::login()
term::push()
terminal::login() is documented but it don't work quite right.
terminal::login()
Login only works when used in terminal option or with push(). But it should also work when called implicitly after the push().
push()
const term = $('body').terminal({ auth() { term.push(command => { term.echo(`protected command <white>${command}</white>`); }, { prompt: '# ' }).login(function(username, password) { if (username == 'demo' && password == 'demo') { return '<TOKEN>'; } return null; }); } }, { completion: true, prompt: '$ ' });
This doesn't work when user is already authenticated.
The terminal is paused, when you press CTRL+D you're logged in.
The text was updated successfully, but these errors were encountered:
resume when calling login when already authenticated #980
be21248
No branches or pull requests
terminal::login()
is documented but it don't work quite right.Login only works when used in terminal option or with
push()
. But it should also work when called implicitly after thepush()
.This doesn't work when user is already authenticated.
Steps to reproduce
Actual behavior
The terminal is paused, when you press CTRL+D you're logged in.
The text was updated successfully, but these errors were encountered: