@@ -0,0 +1,13 @@
#include "auth.h"
extern User users[];
extern int nbUsers;
int authentifier(std::string login, std::string password) {
for(int i = 0; i < nbUsers; i++) {
if(users[i].login == login && users[i].password == password) {
return i;
}
return -1;
The note is not visible to the blocked user.