Switch true/false conditionals to boolean

This commit is contained in:
tsightler
2023-08-28 21:39:42 -04:00
parent 7e2ab22797
commit 19e3dcc1a3
16 changed files with 44 additions and 44 deletions

View File

@@ -86,7 +86,7 @@ export default new class TokenApp {
debug('Username/Password was accepted, waiting for 2FA code to be entered.')
res.sendFile('code.html', {root: webdir})
} else {
const errmsg = error.message ? error.message : 'Unknown error, please check your credentials and try again.'
const errmsg = error.message ? error.message : 'Null response, you may be temporarily throttled/blocked. Please shut down ring-mqtt and try again in a few hours.'
debug(chalk.red(errmsg))
res.cookie('error', errmsg, { maxAge: 1000, encode: String })
res.sendFile('account.html', {root: webdir})