This PR fixes a bug where the application crashes when users attempt to log in with invalid credentials.
Noteworthy Choices:
I refactored the authentication logic to use a more efficient algorithm, reducing the time complexity from O(n^2) to O(n log n).
Problem Resolved:
The issue was caused by a race condition in the authentication process, which resulted in inconsistent state handling. This PR introduces a mutex to synchronize access and resolve the race condition.
Additional Information:
I've tested the changes thoroughly on both Windows and Linux platforms to ensure cross-platform compatibility.
Code of Conduct Reminder:
Please remember to adhere to the project's code of conduct at all times.
Feedback Encouragement:
I welcome any feedback or suggestions for improvement on these changes. Your input is valuable in refining the solution.
Description
Reasons for the Change:
Noteworthy Choices:
Problem Resolved:
Additional Information:
Code of Conduct Reminder:
Feedback Encouragement: