Changeset 3050260
- Timestamp:
- 03/13/2024 07:54:25 AM (2 years ago)
- Location:
- atomchat/trunk
- Files:
-
- 1 deleted
- 2 edited
-
.DS_Store (deleted)
-
README.txt (modified) (2 diffs)
-
atomchat.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
atomchat/trunk/README.txt
r2967377 r3050260 4 4 Requires at least: 4.7 5 5 Requires PHP: 5.6 6 Tested up to: 6. 27 Stable tag: 1.1. 46 Tested up to: 6.4 7 Stable tag: 1.1.5 8 8 License: GNU General Public License v2.0 or later 9 9 … … 183 183 = 1.1.4 = 184 184 * Added skip for now to the installation process 185 186 = 1.1.5 = 187 * Auth token verification for mycred plugin -
atomchat/trunk/atomchat.php
r2967377 r3050260 4 4 * Plugin Name: AtomChat 5 5 * Description: Voice, video & text chat for your WordPress site 6 * Version: 1.1. 46 * Version: 1.1.5 7 7 * Author: AtomChat 8 8 * Author URI: https://www.atomchat.com/ … … 218 218 'methods' => 'POST', 219 219 'callback' => 'atomchatDeductPointsCallback', 220 'permission_callback' => ' __return_true',220 'permission_callback' => 'atomchatDeductPointsPermissionCheck', 221 221 ]); 222 222 }); 223 } 224 225 function atomchatDeductPointsPermissionCheck(WP_REST_Request $request) { 226 $atomchat_auth_key = get_option('atomchat_auth_key'); 227 $encryption_key = $request->get_param('encryption_key'); 228 if (password_verify($atomchat_auth_key, $encryption_key)) { 229 return true; 230 } else { 231 return false; 232 } 223 233 } 224 234
Note: See TracChangeset
for help on using the changeset viewer.