Skip to content

Commit 86541df

Browse files
committed
fix: message displayed on blank /device
1 parent a7f185c commit 86541df

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

docs/configuration.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1675,6 +1675,8 @@ async userCodeInputSource(ctx, form, out, err) {
16751675
msg = '<p>The code you entered is incorrect. Try again</p>';
16761676
} else if (err) {
16771677
msg = '<p>There was an error processing your request</p>';
1678+
} else {
1679+
msg = '<p>Enter the code displayed on your device</p>';
16781680
}
16791681
ctx.body = `<!DOCTYPE html>
16801682
<head>

lib/helpers/defaults.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,8 @@ const DEFAULTS = {
454454
msg = '<p class="red">The code you entered is incorrect. Try again</p>';
455455
} else if (err) {
456456
msg = '<p class="red">There was an error processing your request</p>';
457+
} else {
458+
msg = '<p>Enter the code displayed on your device</p>';
457459
}
458460
ctx.body = `<!DOCTYPE html>
459461
<head>

0 commit comments

Comments
 (0)