@@ -132,19 +132,19 @@ inline void addPassword(privacy::vector <passwordRecords> &passwords, std::vecto
132
132
// The password can't be empty. Give the user 2 more tries to enter a non-empty password
133
133
int attempts{0 };
134
134
while (password.empty () && ++attempts < 3 ) {
135
- printColor (" \n Password can't be blank. Please try again: " , ' y' );
135
+ printColor (" Password can't be blank. Please try again: " , ' y' );
136
136
password = getSensitiveInfo ();
137
137
}
138
138
139
139
// If the password is still empty, return
140
140
if (password.empty ()) {
141
- printColor (" \n Password can't be blank. Try again later." , ' r' , true , std::cerr);
141
+ printColor (" Password can't be blank. Try again later." , ' r' , true , std::cerr);
142
142
return ;
143
143
}
144
144
// Always warn on weak passwords
145
145
if (!isPasswordStrong (password)) {
146
146
printColor (
147
- " \n The password you entered is weak! A password should have at least 8 characters \n and include at least an "
147
+ " The password you entered is weak! A password should have at least 8 characters \n and include at least an "
148
148
" uppercase character, a lowercase, a punctuator, \n and a digit." , ' y' , true );
149
149
printColor (" Please consider using a stronger one." , ' r' , true );
150
150
}
@@ -325,7 +325,7 @@ inline void updatePassword(privacy::vector <passwordRecords> &passwords, std::ve
325
325
// Warn if the password is weak
326
326
if (!newPassword.empty () && !isPasswordStrong (newPassword)) {
327
327
printColor (
328
- " \n The password you entered is weak! A password should have at least 8 characters \n and include at least an "
328
+ " The password you entered is weak! A password should have at least 8 characters \n and include at least an "
329
329
" uppercase character, a lowercase, a punctuator, \n and a digit." , ' y' , true );
330
330
printColor (" Please consider using a stronger one." , ' r' , true );
331
331
}
0 commit comments