public function setupAdminAutoLogin()
 {
     $token = GcrInstitutionTable::generateAutoLoginRecord($this->short_name, 'gc4' . $this->short_name . 'admin', $this->admin_password);
     return $this->getAppUrl() . '/login/index.php?token=' . $token;
 }
 public function setupAutoLogin($username, $password, $expire = null)
 {
     $token = GcrInstitutionTable::generateAutoLoginRecord($this->short_name, $username, $password, $expire);
     return $this->getAppUrl() . '?token=' . $token;
 }