Beispiel #1
0
int RASocket::authenticate()
{
    if (send(std::string("Username: "******"Password: "******"Login attempt for user: %s", user.c_str());

    if (check_access_level(user) == -1)
        return -1;

    if (check_password(user, pass) == -1)
        return -1;

    sLog->outRemote("User login: %s", user.c_str());

    return 0;
}
Beispiel #2
0
int RASocket::authenticate()
{
    if (send(std::string("Username: "******"Password: "******"Login attempt for user: %s", user.c_str());

    if (check_access_level(user) == -1)
        return -1;

    if (check_password(user, pass) == -1)
        return -1;

    TC_LOG_INFO(LOG_FILTER_REMOTECOMMAND, "User login: %s", user.c_str());

    return 0;
}