Show header after logging in

This commit is contained in:
Florine W. Dekker 2018-11-29 18:28:37 +01:00
parent 0cde732754
commit ece4e0050f
Signed by: FWDekker
GPG Key ID: B1B567AF58D6EE0F
1 changed files with 2 additions and 1 deletions

View File

@ -96,9 +96,10 @@ class Terminal {
if (this._user === "felix" && input === "hotel123") {
this._loggedIn = true;
this.outputText += Terminal.generateHeader();
} else {
this.outputText += "Access denied\n";
this._user = undefined;
this.outputText += "Access denied\n";
}
this._input.classList.remove("terminalCurrentFocusInputHidden");