Lines Matching defs:pass
229 $_SESSION[DOKU_COOKIE]['auth']['pass'] = 'nope';
274 * @param string $pass Cleartext Password
282 function auth_login($user, $pass, $sticky = false, $silent = false)
296 if (!empty($pass) && $auth->checkPass($user, $pass)) {
300 auth_setCookie($user, auth_encrypt($pass, $secret), $sticky);
313 [$user, $sticky, $pass] = auth_getCookie();
314 if ($user && $pass) {
325 ($session['pass'] == sha1($pass)) && //still crypted
334 // no we don't trust it yet - recheck pass but silent
336 $pass = auth_decrypt($pass, $secret);
337 return auth_login($user, $pass, $sticky, true);
513 if (isset($_SESSION[DOKU_COOKIE]['auth']['pass']))
514 unset($_SESSION[DOKU_COOKIE]['auth']['pass']);
994 $pass = $INPUT->post->str('pass');
1003 $pass = auth_pwgen($login); // automatically generate password
1004 } elseif (empty($pass) || empty($passchk)) {
1007 } elseif ($pass != $passchk) {
1019 if (!$auth->triggerUserMod('create', [$login, $pass, $fullname, $email])) {
1035 if (auth_sendPassword($login, $pass)) {
1069 $changes['pass'] = $INPUT->post->str('newpass');
1074 if ($changes['pass'] != $INPUT->post->str('passchk')) {
1101 if (!$auth->canDo('modPass')) unset($changes['pass']);
1121 if (array_key_exists('pass', $changes) && $changes['pass']) {
1123 [/* user */, $sticky, /* pass */] = auth_getCookie();
1124 $pass = auth_encrypt($changes['pass'], auth_cookiesalt(!$sticky, true));
1125 auth_setCookie($INPUT->server->str('REMOTE_USER'), $pass, (bool) $sticky);
1239 $pass = $INPUT->str('pass');
1242 if (!$pass) return false;
1243 if ($pass != $INPUT->str('passchk')) {
1249 if (!$auth->triggerUserMod('modify', [$user, ['pass' => $pass]])) {
1254 $pass = auth_pwgen($user);
1255 if (!$auth->triggerUserMod('modify', [$user, ['pass' => $pass]])) {
1260 if (auth_sendPassword($user, $pass)) {
1329 $pass = new PassHash();
1332 if (!method_exists($pass, $call)) {
1337 return $pass->$call($clear, $salt);
1352 $pass = new PassHash();
1353 return $pass->verify_hash($clear, $crypt);
1360 * @param string $pass encrypted password
1364 function auth_setCookie($user, $pass, $sticky)
1375 $cookie = base64_encode($user) . '|' . ((int) $sticky) . '|' . base64_encode($pass);
1388 $_SESSION[DOKU_COOKIE]['auth']['pass'] = sha1($pass);
1406 [$user, $sticky, $pass] = sexplode('|', $_COOKIE[DOKU_COOKIE], 3, '');
1408 $pass = base64_decode($pass);
1410 return [$user, $sticky, $pass];