Merge pull request 'change 'passwordv' to 'passwordVerification'' (#16) from passwordv-change into develop

Reviewed-on: https://git.digitaltelepresence.com/digital-telepresence/dtp-sites/pulls/16
master
CyberShell 2 years ago
commit 02841e5d4f

@ -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();

@ -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

@ -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

Loading…
Cancel
Save