public function GenarateRandomNo($email) { //Call RandomNoGenarator class to create Random no $this->setEmail($email); $randomno = new RandomNoGenarator(); $genaratedRandomNo = $randomno->GenarateCode(6); $this->setRandomNoForUser($genaratedRandomNo); // call GenarateEmailForUSer to send Randomno to user $returnSuccessRandomNo = $this->GenarateEmailForUSer(); //call LoginDetailsDAO to save random no as per user $saveRandomNoDAO = new LoginDetailsDAO(); $returnSuccessRandomNo = $saveRandomNoDAO->savingRandomNo($this); return $returnSuccessRandomNo; }
public function verifyLoginDetails() { $loginDetailsDAO = new LoginDetailsDAO(); $returnVerifyMessage = $loginDetailsDAO->verify($this); return $returnVerifyMessage; }