Lines Matching full:token
182 * Try a token login
184 * @return bool true if token login succeeded
215 [$type, $token] = sexplode(' ', $headers['authorization'], 2);
216 if ($type !== 'Bearer') $token = ''; // not the token we want
219 // check x-dokuwiki-token header
220 if (isset($headers['x-dokuwiki-token'])) {
221 $token = $headers['x-dokuwiki-token'];
224 if (empty($token)) return false;
226 // check token
228 $authtoken = JWT::validate($token);
244 $_SESSION[DOKU_COOKIE]['auth']['token'] = $token;
1205 * - validating the password reset auth token
1228 $token = preg_replace('/[^a-f0-9]+/', '', $INPUT->str('pwauth'));
1230 if ($token) {
1231 // we're in token phase - get user info from token
1233 $tfile = $conf['cachedir'] . '/' . $token[0] . '/' . $token . '.pwauth';
1239 // token is only valid for 3 days
1303 // generate auth token
1304 $token = md5(auth_randombytes(16)); // random secret
1305 $tfile = $conf['cachedir'] . '/' . $token[0] . '/' . $token . '.pwauth';
1306 $url = wl('', ['do' => 'resendpwd', 'pwauth' => $token], true, '&');