mirror of
https://github.com/tsightler/ring-mqtt.git
synced 2025-11-02 21:04:01 +08:00
Switch true/false conditionals to boolean
This commit is contained in:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user