mirror of
https://github.com/kremalicious/umami.git
synced 2025-01-11 13:44:01 +01:00
Fix change password script.
This commit is contained in:
parent
6923ea4d1d
commit
2a2ce0e98d
@ -34,6 +34,7 @@
|
||||
"check-lang": "node scripts/check-lang.js",
|
||||
"download-country-names": "node scripts/download-country-names.js",
|
||||
"download-language-names": "node scripts/download-language-names.js",
|
||||
"change-password": "node scripts/change-password.js",
|
||||
"loadtest": "node scripts/loadtest.js",
|
||||
"loadtest:medium": "node scripts/loadtest.js --weight=medium",
|
||||
"loadtest:heavy": "node scripts/loadtest.js --weight=heavy --verbose",
|
||||
|
@ -87,7 +87,7 @@ const getUsernameAndPassword = async () => {
|
||||
await changePassword(username, password);
|
||||
console.log('Password changed for user', chalk.greenBright(username));
|
||||
} catch (error) {
|
||||
if (error.message.includes('RecordNotFound')) {
|
||||
if (error.meta.cause.includes('Record to update not found')) {
|
||||
console.log('Account not found:', chalk.redBright(username));
|
||||
} else {
|
||||
throw error;
|
||||
|
Loading…
Reference in New Issue
Block a user