Lines Matching +full:check +full:- +full:pass -(+path:inc +path:lang) -(+path:lib +path:plugins +path:lang) -(+path:lib +path:tpl +path:dokuwiki +path:lang)

12  * @author     Jan Schumann <js@jschumann-it.com>
42 * able to operate. Set capabilities in $this->cando
48 * Set $this->success to false if checks fail
68 return array_keys($this->cando);
72 * Capability check. [ DO NOT OVERRIDE ]
74 * Checks the capabilities set in the $this->cando array and
82 * @param string $cap the capability to check
90 return ($this->cando['modPass'] ||
91 $this->cando['modName'] ||
92 $this->cando['modMail']);
95 return ($this->cando['modPass'] ||
96 $this->cando['modName'] ||
97 $this->cando['modMail'] ||
98 $this->cando['modLogin'] ||
99 $this->cando['modGroups'] ||
100 $this->cando['modMail']);
103 if (!isset($this->cando[$cap])) {
104 msg("Check for unknown capability '$cap' - Do you use an outdated Plugin?", -1);
106 return $this->cando[$cap];
117 * @author Gabriel Birke <birke@d-scribe.de>
137 if ($evt->advise_before(true)) {
138 $result = call_user_func_array([$this, $validTypes[$type]], $evt->data['params']);
139 $evt->data['modification_result'] = $result;
141 $evt->advise_after();
162 * Set $this->cando['external'] = true when implemented
165 * authenticate a user - all other DokuWiki internals
180 * the function needs to check if the user is logged in
190 * @param string $pass Cleartext Password
195 public function trustExternal($user, $pass, $sticky = false)
201 $sticky ? $sticky = true : $sticky = false; //sanity check
211 $_SESSION[DOKU_COOKIE]['auth']['pass'] = $pass;
219 * Check user+password [ MUST BE OVERRIDDEN ]
228 * @param string $pass the clear text password
231 public function checkPass($user, $pass)
233 msg("no valid authorisation system in use", -1);
254 if (!$this->cando['external']) msg("no valid authorisation system in use", -1);
271 * @param string $pass
277 public function createUser($user, $pass, $name, $mail, $grps = null)
279 msg("authorisation method does not allow creation of new users", -1);
295 msg("authorisation method does not allow modifying of user data", -1);
310 msg("authorisation method does not allow deleting of users", -1);
326 msg("authorisation method does not provide user counts", -1);
343 msg("authorisation method does not support mass retrieval of user data", -1);
358 msg("authorisation method does not support independent group creation", -1);
374 msg("authorisation method does not support group list retrieval", -1);
430 * Check Session Cache validity [implement only where required/possible]
450 * @param string $user - The username