/
niceSOFT
/
doxygen
Обзор
Документация
Войти
/
niceSOFT
/
doxygen
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
testing/115_requirements.cpp
39 строк
1 KB
Dimitri van Heesch
PR #11839 Add requirements traceability
05 янв 2026, 12:43
Не верифицирован
05 янв 2026, 12:43
d8ab6fd
Код
Авторство
О чём код?
// objective: test the @requirement, @satisfies and @verifies commands // check: requirement__r_e_q-001.xml // check: class_user_manager.xml // check: class_test_user_authentication.xml /** @requirement REQ-001 User Authentication * The system shall provide a secure authentication mechanism for user login. * * The authentication system must meet the following criteria: * - Support username and password authentication * - Implement password hashing using industry-standard algorithms (e.g., bcrypt, Argon2) * - Lock accounts after 5 consecutive failed login attempts * - Require passwords to be at least 8 characters long with mixed case, numbers, and special characters * - Provide a secure password reset mechanism via email verification */ /** * @brief Manages user authentication and session management. * * This class handles all aspects of user authentication including * password verification, account locking, and session creation. * * @satisfies REQ-001 Implements the core authentication mechanism */ class UserManager { public: /** Check access * @satisfies REQ-001 User access check. */ void check_access(std::string &user_id); }; /** * @brief Test suite for user authentication functionality. * * @verifies REQ-001 Validates all authentication requirements */ class TestUserAuthentication {};