Changeset 2914372
- Timestamp:
- 05/18/2023 03:47:43 PM (3 years ago)
- Location:
- json-api-user/trunk
- Files:
-
- 3 edited
-
controllers/User.php (modified) (2 diffs)
-
json-api-user.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
json-api-user/trunk/controllers/User.php
r2769934 r2914372 38 38 39 39 return array( 40 "version" => JAU_VERSION 40 "version" => JAU_VERSION, 41 "php" => PHP_VERSION 41 42 ); 42 43 … … 363 364 public function validate_auth_cookie() { 364 365 365 global $json_api; 366 367 if (!$json_api->query->cookie) { 368 369 $json_api->error("You must include a 'cookie' authentication cookie. Use the `create_auth_cookie` method."); 370 371 } 372 373 $valid = wp_validate_auth_cookie($json_api->query->cookie, 'logged_in') ? true : false; 374 375 return array( 376 377 "valid" => $valid 378 379 ); 380 381 } 366 global $json_api; 367 368 369 if ( !$json_api->query->cookie ) { 370 371 $json_api->error( "You must include a 'cookie' authentication cookie. Use the `generate_auth_cookie` method." ); 372 373 } 374 375 $user_id = wp_validate_auth_cookie( $json_api->query->cookie, 'logged_in' ); 376 377 $valid = $user_id ? true : false; 378 379 return array( 380 381 "valid" => $valid, 382 "user_id" =>$user_id 383 384 ); 385 386 } 382 387 383 388 public function generate_auth_cookie() { -
json-api-user/trunk/json-api-user.php
r2879177 r2914372 9 9 Description: Extends the JSON API for RESTful user registration, authentication, password reset, Facebook Login, user meta and BuddyPress Profile related functions. A Pro version is also available. 10 10 11 Version: 3.9. 111 Version: 3.9.2 12 12 13 13 Author: Ali Qureshi … … 19 19 */ 20 20 21 define('JAU_VERSION', '3.9. 1');21 define('JAU_VERSION', '3.9.2'); 22 22 23 23 include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); -
json-api-user/trunk/readme.txt
r2879177 r2914372 4 4 Tags: json api, RESTful user registration, authentication, RESTful Facebook Login, RESTful User Meta and BuddyPress xProfile 5 5 Contributors: parorrey 6 Stable tag: 3.9. 16 Stable tag: 3.9.2 7 7 Requires at least: 3.0.1 8 8 Tested up to: 6.1.1 … … 233 233 == Changelog == 234 234 235 = 3.9.2 = 236 * Fixed a bug for validate_auth_cookie endpoint and error message 237 235 238 = 3.9.1 = 236 239 * Updated for wordpress version 6.1.1
Note: See TracChangeset
for help on using the changeset viewer.