Fixed typo Passpharse => Passphrase #2

Thanks for reporting.
This commit is contained in:
NI
2019-08-13 17:37:06 +08:00
parent 36ee034bcf
commit 5e6a774bd8
4 changed files with 28 additions and 28 deletions

View File

@@ -240,17 +240,17 @@ function startApp(rootEl) {
date: serverDate ? new Date(serverDate) : null
};
},
async submitAuth(passpharse) {
async submitAuth(passphrase) {
this.authErr = "";
try {
let result = await this.doAuth(passpharse);
let result = await this.doAuth(passphrase);
switch (result.result) {
case 200:
this.socket = this.buildSocket(
{
data: passpharse,
data: passphrase,
fetch() {
return this.data;
}
@@ -262,7 +262,7 @@ function startApp(rootEl) {
break;
case 403:
this.authErr = "Authentication has failed. Wrong passpharse?";
this.authErr = "Authentication has failed. Wrong passphrase?";
break;
default: