themed reset.tpl and reset_code.tpl to BS3, closes #239

This commit is contained in:
psychobunny
2013-08-31 03:46:44 +08:00
parent f49bc088fc
commit 40897d0be6
3 changed files with 49 additions and 17 deletions

View File

@@ -10,9 +10,14 @@
if (password.value.length < 6) {
$('#error').hide();
noticeEl.querySelector('strong').innerHTML = 'Invalid Password';
noticeEl.querySelector('p').innerHTML = 'The password entered it too short, please pick a different password!';
noticeEl.querySelector('p').innerHTML = 'The password entered is too short, please pick a different password.';
noticeEl.style.display = 'block';
} else if (password.value === repeat.value) {
} else if (password.value !== repeat.value) {
$('#error').hide();
noticeEl.querySelector('strong').innerHTML = 'Invalid Password';
noticeEl.querySelector('p').innerHTML = 'The two passwords you\'ve entered do not match.';
noticeEl.style.display = 'block';
} else {
socket.emit('user:reset.commit', { code: reset_code, password: password.value });
}
}, false);