Skip to content

Node.js based forum software built for the modern web

refactor: default prompt text

Barış Soner Uşaklı91a8ef5c5525
diff --git a/public/src/modules/modals.js b/public/src/modules/modals.js
index 59856bc178..bee8ac36cb 100644
--- a/public/src/modules/modals.js
+++ b/public/src/modules/modals.js
@@ -68,7 +68,10 @@ export async function promptPassword(opts) {
if (typeof opts === 'string') {
opts = { title: opts };
}
- opts = opts || {};
+ opts = opts || {
+ title: '[[user:current-password]]',
+ message: '[[user:emailUpdate.password-challenge]]',
+ };
return await new Promise((resolve) => {
prompt({