Example #1
0
 public function resendCode()
 {
     $code = substr(str_shuffle("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, 5);
     $mobile = $this->f3->get('SESSION.mobile');
     $verify = new Verify($this->db);
     $verify->getUserMobile($mobile, $code);
     $this->f3->reroute('/confirmation/New code resend to your phone number');
 }