Lines Matching refs:pass
289 * @param string $pass Cleartext Password
297 function auth_login($user, $pass, $sticky = false, $silent = false) argument
311 …if (!empty($pass)) usleep(random_int(0, 250)); // add a random delay to prevent timing attacks #44…
312 if (!empty($pass) && $auth->checkPass($user, $pass)) {
316 auth_setCookie($user, auth_encrypt($pass, $secret), $sticky);
329 [$user, $sticky, $pass] = auth_getCookie();
330 if ($user && $pass) {
342 ($session['pass'] === sha1($pass)) && //still crypted
353 $pass = auth_decrypt($pass, $secret);
354 return auth_login($user, $pass, $sticky, true);
1026 $pass = $INPUT->post->str('pass');
1035 $pass = auth_pwgen($login); // automatically generate password
1036 } elseif (empty($pass) || empty($passchk)) {
1039 } elseif ($pass != $passchk) {
1051 if (!$auth->triggerUserMod('create', [$login, $pass, $fullname, $email])) {
1067 if (auth_sendPassword($login, $pass)) {
1156 $pass = auth_encrypt($changes['pass'], auth_cookiesalt(!$sticky, true));
1157 auth_setCookie($INPUT->server->str('REMOTE_USER'), $pass, (bool) $sticky);
1271 $pass = $INPUT->str('pass');
1274 if (!$pass) return false;
1275 if ($pass != $INPUT->str('passchk')) {
1281 if (!$auth->triggerUserMod('modify', [$user, ['pass' => $pass]])) {
1286 $pass = auth_pwgen($user);
1287 if (!$auth->triggerUserMod('modify', [$user, ['pass' => $pass]])) {
1292 if (auth_sendPassword($user, $pass)) {
1368 $pass = new PassHash();
1371 if (!method_exists($pass, $call)) {
1376 return $pass->$call($clear, $salt);
1395 $pass = new PassHash();
1396 return $pass->verify_hash($clear, $crypt);
1403 * @param string $pass encrypted password
1407 function auth_setCookie($user, $pass, $sticky) argument
1418 $cookie = base64_encode($user) . '|' . ((int) $sticky) . '|' . base64_encode($pass);
1431 $_SESSION[DOKU_COOKIE]['auth']['pass'] = sha1($pass);
1449 [$user, $sticky, $pass] = sexplode('|', $_COOKIE[DOKU_COOKIE], 3, '');
1451 $pass = base64_decode($pass);
1453 return [$user, $sticky, $pass];