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.
@@ -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: '274fd3f8db8cb3f48bd956ba40d5aacb8ec15e1f' }, index.h("div", { key: '644c586e190c63651d9e521793611a83d372d0ad', id: "ccc", ref: el => (this.containerEl = el) })));
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: '274fd3f8db8cb3f48bd956ba40d5aacb8ec15e1f' }, h("div", { key: '644c586e190c63651d9e521793611a83d372d0ad', id: "ccc", ref: el => (this.containerEl = el) })));
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"; }