Skip to content

Commit d23ca05

Browse files
committed
Version 2.5.0 release
1 parent d6da1aa commit d23ca05

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/passwordManager/passwordManager.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -132,19 +132,19 @@ inline void addPassword(privacy::vector <passwordRecords> &passwords, std::vecto
132132
// The password can't be empty. Give the user 2 more tries to enter a non-empty password
133133
int attempts{0};
134134
while (password.empty() && ++attempts < 3) {
135-
printColor("\nPassword can't be blank. Please try again: ", 'y');
135+
printColor("Password can't be blank. Please try again: ", 'y');
136136
password = getSensitiveInfo();
137137
}
138138

139139
// If the password is still empty, return
140140
if (password.empty()) {
141-
printColor("\nPassword 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);
142142
return;
143143
}
144144
// Always warn on weak passwords
145145
if (!isPasswordStrong(password)) {
146146
printColor(
147-
"\nThe password you entered is weak! A password should have at least 8 characters \nand include at least an "
147+
"The password you entered is weak! A password should have at least 8 characters \nand include at least an "
148148
"uppercase character, a lowercase, a punctuator, \nand a digit.", 'y', true);
149149
printColor("Please consider using a stronger one.", 'r', true);
150150
}
@@ -325,7 +325,7 @@ inline void updatePassword(privacy::vector <passwordRecords> &passwords, std::ve
325325
// Warn if the password is weak
326326
if (!newPassword.empty() && !isPasswordStrong(newPassword)) {
327327
printColor(
328-
"\nThe password you entered is weak! A password should have at least 8 characters \nand include at least an "
328+
"The password you entered is weak! A password should have at least 8 characters \nand include at least an "
329329
"uppercase character, a lowercase, a punctuator, \nand a digit.", 'y', true);
330330
printColor("Please consider using a stronger one.", 'r', true);
331331
}

src/utils/utils.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ privacy::string getSensitiveInfo(const std::string_view prompt) {
185185
// Trim leading and trailing spaces
186186
stripString(passphrase);
187187

188+
std::cout << std::endl;
189+
188190
return passphrase;
189191
}
190192

0 commit comments

Comments
 (0)