| 133 | } |
| 134 | |
| 135 | bool CAuthManager::CheckKey(int Slot, const char *pPw) const |
| 136 | { |
| 137 | if(Slot < 0 || Slot >= (int)m_vKeys.size()) |
| 138 | return false; |
| 139 | return m_vKeys[Slot].m_Pw == HashPassword(pPw, m_vKeys[Slot].m_aSalt); |
| 140 | } |
| 141 | |
| 142 | int CAuthManager::DefaultIndex(int AuthLevel) const |
| 143 | { |
no test coverage detected