/**
  * URL: /login/oauth2
  *
  * This is the route the google will send the resonce code to.
  */
 public function oauth2($data)
 {
     $model = new Model();
     $model->checkRedirectCode();
     // if exception is thrown, it caught at the top level of app
     header('location: ' . URL);
     exit;
 }