ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
BasicCallBack.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Sabre\DAV\Auth\Backend;
4 
18 
24  protected $callBack;
25 
35  function __construct(callable $callBack) {
36 
37  $this->callBack = $callBack;
38 
39  }
40 
51  protected function validateUserPass($username, $password) {
52 
53  $cb = $this->callBack;
54  return $cb($username, $password);
55 
56  }
57 
58 }
validateUserPass($username, $password)
Validates a username and password.
Extremely simply HTTP Basic auth backend.
HTTP Basic authentication backend class.
__construct(callable $callBack)
Creates the backend.
$password
Definition: cron.php:14