From cf8847ee2d9125d83d7dcdaa29b9cedd4eaa8d8a Mon Sep 17 00:00:00 2001 From: Andrew W Date: Tue, 26 Jul 2022 13:59:00 -0500 Subject: [PATCH] change 'passwordv' to 'passwordVerification' --- app/services/user.js | 2 +- app/views/user/settings.pug | 4 ++-- app/views/welcome/signup.pug | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/services/user.js b/app/services/user.js index b5fbcad..ce64d27 100644 --- a/app/services/user.js +++ b/app/services/user.js @@ -541,7 +541,7 @@ class UserService extends SiteService { } if (settings.password) { - if (settings.password !== settings.passwordv) { + if (settings.password !== settings.passwordVerification) { throw new SiteError(400, 'Password and password verification do not match.'); } update.$set.passwordSalt = uuidv4(); diff --git a/app/views/user/settings.pug b/app/views/user/settings.pug index 03f6870..074a3ed 100644 --- a/app/views/user/settings.pug +++ b/app/views/user/settings.pug @@ -70,8 +70,8 @@ block content input(id="password", name="password", type="password", placeholder="Enter new password", autocomplete= "new-password").uk-input .uk-width-1-2 .uk-margin - label(for="passwordv").uk-form-label Verify New Password - input(id="passwordv", name="passwordv", type="password", placeholder="Enter new password again", autocomplete= "new-password").uk-input + label(for="passwordVerification").uk-form-label Verify New Password + input(id="passwordVerification", name="passwordVerification", type="password", placeholder="Enter new password again", autocomplete= "new-password").uk-input fieldset legend Email Preferences diff --git a/app/views/welcome/signup.pug b/app/views/welcome/signup.pug index 3ee8403..63e37e8 100644 --- a/app/views/welcome/signup.pug +++ b/app/views/welcome/signup.pug @@ -36,8 +36,8 @@ block content .uk-width-1-2 .uk-margin - label(for="passwordv").uk-form-label Verify password - input(id="passwordv", name="passwordv", type="password", placeholder="Verify password").uk-input + label(for="passwordVerification").uk-form-label Verify password + input(id="passwordVerification", name="passwordVerification", type="password", placeholder="Verify password").uk-input .uk-text-small.uk-text-muted.uk-margin-small-top(class="uk-visible@m") Please enter your password again to prove you're not an idiot. .uk-margin