public function onRun() { $get = get(); if (isset($get['key'])) { // Attempt to load the user by the key $user = Auth::get_users(array('meta_key' => '_recovery_key', 'meta_value' => $get['key'])); if (!$user) { return Redirect::to($this->property('404_page')); } } $this->addJs('/plugins/winterpk/wordpress/assets/global/js/global.js'); $this->addCss('/plugins/winterpk/wordpress/assets/global/css/global.css'); $this->addJs('/plugins/winterpk/wordpress/assets/passwordrecovery/js/password-recovery.js'); $this->addCss('/plugins/winterpk/wordpress/assets/passwordrecovery/css/password-recovery.css'); }