if($process->g_User() && $process->g_Pass()){
if($process->LdapConn()){
if($process->LdapBind()){
return 'google';
}else{
procLogin();
}
}
}
If my condition fails, it must call the procLogin() function but its not calling... the ProcLogin has just an echo...
if($process->g_User() && $process->g_Pass() && $process->LdapConn()
&& process->LdapBind()) {
return 'google';
When using this... it does not even call the google...
But in my latter code, at least it was calling...
My Requirement is... if the username and password is wrong, then it should fail regardless the connection is established or not.