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);
1203 * - validating the password reset auth token
1226 $token = preg_replace('/[^a-f0-9]+/', '', $INPUT->str('pwauth'));
1228 if ($token) {
1229 // we're in token phase - get user info from token
1231 $tfile = $conf['cachedir'] . '/' . $token[0] . '/' . $token . '.pwauth';
1237 // token is only valid for 3 days
1301 // generate auth token
1302 $token = md5(auth_randombytes(16)); // random secret
1303 $tfile = $conf['cachedir'] . '/' . $token[0] . '/' . $token . '.pwauth';
1304 $url = wl('', ['do' => 'resendpwd', 'pwauth' => $token], true, '&');