Ejemplo n.º 1
0
 public function DeleteUser($user = '', $no_error_info = FALSE)
 {
     if ('' != $user) {
         $this->SetUser($user);
     }
     $OtpUserDataMapper = new OtpUserDataMapper();
     return $OtpUserDataMapper->deleteByUser($this->GetUser());
 }
Ejemplo n.º 2
0
<?php

include_once "user_otp/db/otpuserdatamapper.php";
OC_Util::checkLoggedIn();
$OtpUserDataMapper = new OtpUserDataMapper();
header("Content-type: image/png");
echo $OtpUserDataMapper->findQrcodeByUser(OCP\User::getUser());
//var_dump($OtpUserDataMapper->findQrcodeByUser(OCP\User::getUser()));