phirepass-widgets 0.0.42 → 0.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/phirepass-terminal.cjs.entry.js +3 -2
- package/dist/collection/components/phirepass-terminal/phirepass-terminal.js +3 -2
- package/dist/components/phirepass-terminal.js +4 -4
- package/dist/esm/phirepass-terminal.entry.js +3 -2
- package/dist/phirepass-widgets/{p-bb70a3bd.entry.js → p-4e32fef4.entry.js} +4 -4
- package/dist/phirepass-widgets/phirepass-widgets.esm.js +1 -1
- package/package.json +1 -1
|
@@ -512,8 +512,9 @@ const PhirepassTerminal = class {
|
|
|
512
512
|
this.usernameBuffer = "";
|
|
513
513
|
this.passwordBuffer = "";
|
|
514
514
|
break;
|
|
515
|
-
case protocol.ErrorType.RequiresUsername:
|
|
516
515
|
case protocol.ErrorType.RequiresUsernamePassword:
|
|
516
|
+
console.log('Server requires both username and password. Prompting for username first.');
|
|
517
|
+
case protocol.ErrorType.RequiresUsername:
|
|
517
518
|
this.terminal.reset();
|
|
518
519
|
this.inputMode = protocol.InputMode.Username;
|
|
519
520
|
this.usernameBuffer = "";
|
|
@@ -694,7 +695,7 @@ const PhirepassTerminal = class {
|
|
|
694
695
|
this.usernameBuffer = "";
|
|
695
696
|
}
|
|
696
697
|
render() {
|
|
697
|
-
return (index.h(index.Host, { key: '
|
|
698
|
+
return (index.h(index.Host, { key: 'fb718b4652e9d3d822a511bbabc58c0d8a754f53' }, index.h("div", { key: 'f3f3b41de2aff14b0fb3a411fd5af847f1ac106c', id: "ccc", ref: el => (this.containerEl = el) })));
|
|
698
699
|
}
|
|
699
700
|
static get watchers() { return {
|
|
700
701
|
"nodeId": [{
|
|
@@ -300,8 +300,9 @@ export class PhirepassTerminal {
|
|
|
300
300
|
this.usernameBuffer = "";
|
|
301
301
|
this.passwordBuffer = "";
|
|
302
302
|
break;
|
|
303
|
-
case ProtocolMessageError.RequiresUsername:
|
|
304
303
|
case ProtocolMessageError.RequiresUsernamePassword:
|
|
304
|
+
console.log('Server requires both username and password. Prompting for username first.');
|
|
305
|
+
case ProtocolMessageError.RequiresUsername:
|
|
305
306
|
this.terminal.reset();
|
|
306
307
|
this.inputMode = InputMode.Username;
|
|
307
308
|
this.usernameBuffer = "";
|
|
@@ -482,7 +483,7 @@ export class PhirepassTerminal {
|
|
|
482
483
|
this.usernameBuffer = "";
|
|
483
484
|
}
|
|
484
485
|
render() {
|
|
485
|
-
return (h(Host, { key: '
|
|
486
|
+
return (h(Host, { key: 'fb718b4652e9d3d822a511bbabc58c0d8a754f53' }, h("div", { key: 'f3f3b41de2aff14b0fb3a411fd5af847f1ac106c', id: "ccc", ref: el => (this.containerEl = el) })));
|
|
486
487
|
}
|
|
487
488
|
static get is() { return "phirepass-terminal"; }
|
|
488
489
|
static get encapsulation() { return "shadow"; }
|