Fix login validation and improve error messages

- Check if user account is inactive before allowing login
- Add password confirmation in change password dialog
- Prevent changing password to the same value
- Standardize error messages to say "Invalid index" instead of "Invalid choice"
- Add blank line before system pause prompt
- Add "Change Password" header to change password screen
- Show error message when login fails

Fixes #1738
Fixes #1736
This commit is contained in:
2026-05-26 12:18:38 +05:30
parent 1e11903cca
commit 8d07b11eae
3 changed files with 36 additions and 8 deletions
@@ -62,6 +62,7 @@ namespace util
*/
inline void pressEnter()
{
std::cout << std::endl;
system("pause");
}
}