No need for exclamation here

master
Keith Irwin 2017-04-15 11:00:04 -04:00
parent e1838dfaee
commit 26749cb8bd
No known key found for this signature in database
GPG Key ID: 378933C743E2BBC0
2 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,7 @@ router
.post('/password', (req,res,next)=>{
let daysToCrack = mellt.CheckPassword(req.body.password);
if (daysToCrack<10) {
let err = new Error(`That password could be cracked in ${daysToCrack} days! Come up with a more complex password that would take at least 10 days to crack. `)
let err = new Error(`That password could be cracked in ${daysToCrack} days! Come up with a more complex password that would take at least 10 days to crack. `);
mw.throwErr(err);
next(err);
}

View File

@ -13,7 +13,7 @@ function checkMatch(){
// User has retyped, but they don't match yet
else if ($('#p2').val()!=='') {
$('#password-help').text("Those passwords don't match! ").css({'color':'#fb6e3d'});
$('#password-help').text("Those passwords don't match... ").css({'color':'#fb6e3d'});
$('#submit').prop('disabled',true).prop('title',"You need to type the same password twice before you can save it. ");
}
@ -33,7 +33,7 @@ $(function(){
// Only second password entered
else if ($('#p1').val()==='') {
$('#password-help').show().text("Those passwords don't match! ");
$('#password-help').show().text("Those passwords don't match... ");
$('#submit').prop('disabled',true).prop('title',"You need to type the same password twice correctly before you can save it. ");
}