manager.cpp
bool Manager::user_exists()
{
    QProcess proc;
    proc.start("id " + getNew_username());
    proc.waitForFinished();
    if(proc.exitCode()!=0)
    {
        return false;
    }
    return true;
}
// CHeck if a user exists in the system
CHeck if a user exists in the system
CHeck if a user exists in the system
bool Manager::user_exists()
{
    QProcess proc;
    proc.start("id " + getNew_username());
    proc.waitForFinished();
    if(proc.exitCode()!=0)
    {
        return false;
    }
    return true;
}
bool Manager :: user_exists ( ) { QProcess proc ; proc . start ( " " + getNew_username ( ) ) ; proc . waitForFinished ( ) ; if ( proc . exitCode ( ) != 0 ) { return false ; } return true ; }
CHeck if a user exists in the system
CHeck if a user exists in the system