PATH:
home
/
letacommog
/
laindinois
/
wp-content
/
plugins
/
wilcity-mobile-app
/
app
/
Controllers
<?php namespace WILCITY_APP\Controllers; use ReallySimpleJWT\TokenBuilder; use WilokeListingTools\Framework\Helpers\SetSettings; trait BuildToken { private function buildToken($oUser, $expiration=''){ $builder = new TokenBuilder(); if ( empty($expiration) ){ $expiration = $this->getOptionField('wilcity_token_expired_after'); $expiration = !empty($expiration) ? '+' . $expiration . ' day' : '+30 day'; } try{ $token = $builder->addPayload(['key' => 'userID', 'value' => $oUser->ID]) ->setSecret($this->getSecurityAuthKey()) ->setExpiration(strtotime($expiration)) ->setIssuer(get_option('siteurl')) ->build(); SetSettings::setUserMeta($oUser->ID, 'app_token', $token); do_action('wilcity/wilcity-mobile-app/app-signed-up', $oUser->ID, $token); return $token; }catch (\Exception $oE){ return array( 'status' => 'error', 'msg' => $oE->getMessage() . '. Please go to Appearance -> Theme Options -> Mobile General Settings -> SECURE AUTH KEY to complete this setting' ); } } }
[+]
..
[-] UserController.php
[edit]
[-] UserPermission.php
[edit]
[+]
Firebase
[-] HomeController.php
[edit]
[-] MessageController.php
[edit]
[-] LoginRegister.php
[edit]
[-] MyDirectoryController.php
[edit]
[-] FirebaseController.php
[edit]
[-] PostTypes.php
[edit]
[-] TermController.php
[edit]
[-] GeneralSettings.php
[edit]
[-] VerifyToken.php
[edit]
[-] JsonSkeleton.php
[edit]
[-] Filter.php
[edit]
[-] Events.php
[edit]
[-] NotificationController.php
[edit]
[-] ImageController.php
[edit]
[-] GetSecurityKey.php
[edit]
[-] NearByMe.php
[edit]
[-] BuildToken.php
[edit]
[-] Listing.php
[edit]
[-] OrderBy.php
[edit]
[-] FieldHelps.php
[edit]
[-] Message.php
[edit]
[-] Event.php
[edit]
[-] DashboardController.php
[edit]
[-] FirebaseDB.php
[edit]
[-] FavoritesController.php
[edit]
[-] Translations.php
[edit]
[-] ReviewController.php
[edit]
[-] Review.php
[edit]
[-] AdmobController.php
[edit]
[-] SearchField.php
[edit]
[-] BuildQuery.php
[edit]
[-] ReportController.php
[edit]
[-] ParsePost.php
[edit]
[-] MenuController.php
[edit]
[-] Taxonomies.php
[edit]
[-] Blog.php
[edit]
[-] Listings.php
[edit]