{"payload":{"allShortcutsEnabled":false,"fileTree":{"wire/core":{"items":[{"name":".phpstorm.meta.php","path":"wire/core/.phpstorm.meta.php","contentType":"file"},{"name":"AdminTheme.php","path":"wire/core/AdminTheme.php","contentType":"file"},{"name":"AdminThemeFramework.php","path":"wire/core/AdminThemeFramework.php","contentType":"file"},{"name":"Breadcrumb.php","path":"wire/core/Breadcrumb.php","contentType":"file"},{"name":"Breadcrumbs.php","path":"wire/core/Breadcrumbs.php","contentType":"file"},{"name":"CacheFile.php","path":"wire/core/CacheFile.php","contentType":"file"},{"name":"Config.php","path":"wire/core/Config.php","contentType":"file"},{"name":"ConfigurableModule.php","path":"wire/core/ConfigurableModule.php","contentType":"file"},{"name":"Database.php","path":"wire/core/Database.php","contentType":"file"},{"name":"DatabaseMysqli.php","path":"wire/core/DatabaseMysqli.php","contentType":"file"},{"name":"DatabaseQuery.php","path":"wire/core/DatabaseQuery.php","contentType":"file"},{"name":"DatabaseQuerySelect.php","path":"wire/core/DatabaseQuerySelect.php","contentType":"file"},{"name":"DatabaseQuerySelectFulltext.php","path":"wire/core/DatabaseQuerySelectFulltext.php","contentType":"file"},{"name":"DatabaseStopwords.php","path":"wire/core/DatabaseStopwords.php","contentType":"file"},{"name":"Debug.php","path":"wire/core/Debug.php","contentType":"file"},{"name":"Exceptions.php","path":"wire/core/Exceptions.php","contentType":"file"},{"name":"Field.php","path":"wire/core/Field.php","contentType":"file"},{"name":"FieldSelectorInfo.php","path":"wire/core/FieldSelectorInfo.php","contentType":"file"},{"name":"Fieldgroup.php","path":"wire/core/Fieldgroup.php","contentType":"file"},{"name":"Fieldgroups.php","path":"wire/core/Fieldgroups.php","contentType":"file"},{"name":"FieldgroupsArray.php","path":"wire/core/FieldgroupsArray.php","contentType":"file"},{"name":"Fields.php","path":"wire/core/Fields.php","contentType":"file"},{"name":"FieldsArray.php","path":"wire/core/FieldsArray.php","contentType":"file"},{"name":"FieldsTableTools.php","path":"wire/core/FieldsTableTools.php","contentType":"file"},{"name":"Fieldtype.php","path":"wire/core/Fieldtype.php","contentType":"file"},{"name":"FieldtypeMulti.php","path":"wire/core/FieldtypeMulti.php","contentType":"file"},{"name":"Fieldtypes.php","path":"wire/core/Fieldtypes.php","contentType":"file"},{"name":"FileCompiler.php","path":"wire/core/FileCompiler.php","contentType":"file"},{"name":"FileCompilerModule.php","path":"wire/core/FileCompilerModule.php","contentType":"file"},{"name":"FileLog.php","path":"wire/core/FileLog.php","contentType":"file"},{"name":"FileValidatorModule.php","path":"wire/core/FileValidatorModule.php","contentType":"file"},{"name":"FilenameArray.php","path":"wire/core/FilenameArray.php","contentType":"file"},{"name":"Fuel.php","path":"wire/core/Fuel.php","contentType":"file"},{"name":"Functions.php","path":"wire/core/Functions.php","contentType":"file"},{"name":"FunctionsAPI.php","path":"wire/core/FunctionsAPI.php","contentType":"file"},{"name":"FunctionsWireAPI.php","path":"wire/core/FunctionsWireAPI.php","contentType":"file"},{"name":"HookEvent.php","path":"wire/core/HookEvent.php","contentType":"file"},{"name":"ImageInspector.php","path":"wire/core/ImageInspector.php","contentType":"file"},{"name":"ImageSizer.php","path":"wire/core/ImageSizer.php","contentType":"file"},{"name":"ImageSizerEngine.php","path":"wire/core/ImageSizerEngine.php","contentType":"file"},{"name":"ImageSizerEngineGD.php","path":"wire/core/ImageSizerEngineGD.php","contentType":"file"},{"name":"Inputfield.php","path":"wire/core/Inputfield.php","contentType":"file"},{"name":"InputfieldWrapper.php","path":"wire/core/InputfieldWrapper.php","contentType":"file"},{"name":"InputfieldsArray.php","path":"wire/core/InputfieldsArray.php","contentType":"file"},{"name":"Interfaces.php","path":"wire/core/Interfaces.php","contentType":"file"},{"name":"LanguageFunctions.php","path":"wire/core/LanguageFunctions.php","contentType":"file"},{"name":"MarkupFieldtype.php","path":"wire/core/MarkupFieldtype.php","contentType":"file"},{"name":"MarkupQA.php","path":"wire/core/MarkupQA.php","contentType":"file"},{"name":"Module.php","path":"wire/core/Module.php","contentType":"file"},{"name":"ModuleConfig.php","path":"wire/core/ModuleConfig.php","contentType":"file"},{"name":"ModuleJS.php","path":"wire/core/ModuleJS.php","contentType":"file"},{"name":"ModulePlaceholder.php","path":"wire/core/ModulePlaceholder.php","contentType":"file"},{"name":"Modules.php","path":"wire/core/Modules.php","contentType":"file"},{"name":"ModulesClass.php","path":"wire/core/ModulesClass.php","contentType":"file"},{"name":"ModulesConfigs.php","path":"wire/core/ModulesConfigs.php","contentType":"file"},{"name":"ModulesDuplicates.php","path":"wire/core/ModulesDuplicates.php","contentType":"file"},{"name":"ModulesFiles.php","path":"wire/core/ModulesFiles.php","contentType":"file"},{"name":"ModulesFlags.php","path":"wire/core/ModulesFlags.php","contentType":"file"},{"name":"ModulesInfo.php","path":"wire/core/ModulesInfo.php","contentType":"file"},{"name":"ModulesInstaller.php","path":"wire/core/ModulesInstaller.php","contentType":"file"},{"name":"ModulesLoader.php","path":"wire/core/ModulesLoader.php","contentType":"file"},{"name":"Notices.php","path":"wire/core/Notices.php","contentType":"file"},{"name":"NullField.php","path":"wire/core/NullField.php","contentType":"file"},{"name":"NullPage.php","path":"wire/core/NullPage.php","contentType":"file"},{"name":"PWGIF.php","path":"wire/core/PWGIF.php","contentType":"file"},{"name":"PWPNG.php","path":"wire/core/PWPNG.php","contentType":"file"},{"name":"Page.php","path":"wire/core/Page.php","contentType":"file"},{"name":"PageAccess.php","path":"wire/core/PageAccess.php","contentType":"file"},{"name":"PageAction.php","path":"wire/core/PageAction.php","contentType":"file"},{"name":"PageArray.php","path":"wire/core/PageArray.php","contentType":"file"},{"name":"PageArrayIterator.php","path":"wire/core/PageArrayIterator.php","contentType":"file"},{"name":"PageComparison.php","path":"wire/core/PageComparison.php","contentType":"file"},{"name":"PageFinder.php","path":"wire/core/PageFinder.php","contentType":"file"},{"name":"PageProperties.php","path":"wire/core/PageProperties.php","contentType":"file"},{"name":"PageTraversal.php","path":"wire/core/PageTraversal.php","contentType":"file"},{"name":"PageValues.php","path":"wire/core/PageValues.php","contentType":"file"},{"name":"Pagefile.php","path":"wire/core/Pagefile.php","contentType":"file"},{"name":"PagefileExtra.php","path":"wire/core/PagefileExtra.php","contentType":"file"},{"name":"Pagefiles.php","path":"wire/core/Pagefiles.php","contentType":"file"},{"name":"PagefilesManager.php","path":"wire/core/PagefilesManager.php","contentType":"file"},{"name":"Pageimage.php","path":"wire/core/Pageimage.php","contentType":"file"},{"name":"PageimageDebugInfo.php","path":"wire/core/PageimageDebugInfo.php","contentType":"file"},{"name":"PageimageVariations.php","path":"wire/core/PageimageVariations.php","contentType":"file"},{"name":"Pageimages.php","path":"wire/core/Pageimages.php","contentType":"file"},{"name":"Pages.php","path":"wire/core/Pages.php","contentType":"file"},{"name":"PagesAccess.php","path":"wire/core/PagesAccess.php","contentType":"file"},{"name":"PagesEditor.php","path":"wire/core/PagesEditor.php","contentType":"file"},{"name":"PagesExportImport.php","path":"wire/core/PagesExportImport.php","contentType":"file"},{"name":"PagesLoader.php","path":"wire/core/PagesLoader.php","contentType":"file"},{"name":"PagesLoaderCache.php","path":"wire/core/PagesLoaderCache.php","contentType":"file"},{"name":"PagesNames.php","path":"wire/core/PagesNames.php","contentType":"file"},{"name":"PagesParents.php","path":"wire/core/PagesParents.php","contentType":"file"},{"name":"PagesPathFinder.php","path":"wire/core/PagesPathFinder.php","contentType":"file"},{"name":"PagesRaw.php","path":"wire/core/PagesRaw.php","contentType":"file"},{"name":"PagesRequest.php","path":"wire/core/PagesRequest.php","contentType":"file"},{"name":"PagesSortfields.php","path":"wire/core/PagesSortfields.php","contentType":"file"},{"name":"PagesTrash.php","path":"wire/core/PagesTrash.php","contentType":"file"},{"name":"PagesType.php","path":"wire/core/PagesType.php","contentType":"file"},{"name":"PaginatedArray.php","path":"wire/core/PaginatedArray.php","contentType":"file"},{"name":"Password.php","path":"wire/core/Password.php","contentType":"file"},{"name":"Paths.php","path":"wire/core/Paths.php","contentType":"file"},{"name":"Permission.php","path":"wire/core/Permission.php","contentType":"file"},{"name":"Permissions.php","path":"wire/core/Permissions.php","contentType":"file"},{"name":"Process.php","path":"wire/core/Process.php","contentType":"file"},{"name":"ProcessController.php","path":"wire/core/ProcessController.php","contentType":"file"},{"name":"ProcessWire.php","path":"wire/core/ProcessWire.php","contentType":"file"},{"name":"Punycode.php","path":"wire/core/Punycode.php","contentType":"file"},{"name":"Role.php","path":"wire/core/Role.php","contentType":"file"},{"name":"Roles.php","path":"wire/core/Roles.php","contentType":"file"},{"name":"Sanitizer.php","path":"wire/core/Sanitizer.php","contentType":"file"},{"name":"Selector.php","path":"wire/core/Selector.php","contentType":"file"},{"name":"Selectors.php","path":"wire/core/Selectors.php","contentType":"file"},{"name":"Session.php","path":"wire/core/Session.php","contentType":"file"},{"name":"SessionCSRF.php","path":"wire/core/SessionCSRF.php","contentType":"file"},{"name":"Template.php","path":"wire/core/Template.php","contentType":"file"},{"name":"TemplateFile.php","path":"wire/core/TemplateFile.php","contentType":"file"},{"name":"Templates.php","path":"wire/core/Templates.php","contentType":"file"},{"name":"TemplatesArray.php","path":"wire/core/TemplatesArray.php","contentType":"file"},{"name":"Textformatter.php","path":"wire/core/Textformatter.php","contentType":"file"},{"name":"Tfa.php","path":"wire/core/Tfa.php","contentType":"file"},{"name":"User.php","path":"wire/core/User.php","contentType":"file"},{"name":"Users.php","path":"wire/core/Users.php","contentType":"file"},{"name":"Wire.php","path":"wire/core/Wire.php","contentType":"file"},{"name":"WireAction.php","path":"wire/core/WireAction.php","contentType":"file"},{"name":"WireArray.php","path":"wire/core/WireArray.php","contentType":"file"},{"name":"WireCache.php","path":"wire/core/WireCache.php","contentType":"file"},{"name":"WireCacheDatabase.php","path":"wire/core/WireCacheDatabase.php","contentType":"file"},{"name":"WireClassLoader.php","path":"wire/core/WireClassLoader.php","contentType":"file"},{"name":"WireData.php","path":"wire/core/WireData.php","contentType":"file"},{"name":"WireDataDB.php","path":"wire/core/WireDataDB.php","contentType":"file"},{"name":"WireDatabaseBackup.php","path":"wire/core/WireDatabaseBackup.php","contentType":"file"},{"name":"WireDatabasePDO.php","path":"wire/core/WireDatabasePDO.php","contentType":"file"},{"name":"WireDatabasePDOStatement.php","path":"wire/core/WireDatabasePDOStatement.php","contentType":"file"},{"name":"WireDateTime.php","path":"wire/core/WireDateTime.php","contentType":"file"},{"name":"WireDebugInfo.php","path":"wire/core/WireDebugInfo.php","contentType":"file"},{"name":"WireFileTools.php","path":"wire/core/WireFileTools.php","contentType":"file"},{"name":"WireHooks.php","path":"wire/core/WireHooks.php","contentType":"file"},{"name":"WireHttp.php","path":"wire/core/WireHttp.php","contentType":"file"},{"name":"WireInput.php","path":"wire/core/WireInput.php","contentType":"file"},{"name":"WireInputData.php","path":"wire/core/WireInputData.php","contentType":"file"},{"name":"WireInputDataCookie.php","path":"wire/core/WireInputDataCookie.php","contentType":"file"},{"name":"WireLog.php","path":"wire/core/WireLog.php","contentType":"file"},{"name":"WireMail.php","path":"wire/core/WireMail.php","contentType":"file"},{"name":"WireMailInterface.php","path":"wire/core/WireMailInterface.php","contentType":"file"},{"name":"WireMailTools.php","path":"wire/core/WireMailTools.php","contentType":"file"},{"name":"WireMarkupRegions.php","path":"wire/core/WireMarkupRegions.php","contentType":"file"},{"name":"WireNumberTools.php","path":"wire/core/WireNumberTools.php","contentType":"file"},{"name":"WireRandom.php","path":"wire/core/WireRandom.php","contentType":"file"},{"name":"WireSaveableItems.php","path":"wire/core/WireSaveableItems.php","contentType":"file"},{"name":"WireSaveableItemsLookup.php","path":"wire/core/WireSaveableItemsLookup.php","contentType":"file"},{"name":"WireSessionHandler.php","path":"wire/core/WireSessionHandler.php","contentType":"file"},{"name":"WireShutdown.php","path":"wire/core/WireShutdown.php","contentType":"file"},{"name":"WireTempDir.php","path":"wire/core/WireTempDir.php","contentType":"file"},{"name":"WireTextTools.php","path":"wire/core/WireTextTools.php","contentType":"file"},{"name":"WireUpload.php","path":"wire/core/WireUpload.php","contentType":"file"},{"name":"admin.php","path":"wire/core/admin.php","contentType":"file"},{"name":"boot.php","path":"wire/core/boot.php","contentType":"file"},{"name":"install.sql","path":"wire/core/install.sql","contentType":"file"}],"totalCount":158},"wire":{"items":[{"name":"core","path":"wire/core","contentType":"directory"},{"name":"modules","path":"wire/modules","contentType":"directory"},{"name":"templates-admin","path":"wire/templates-admin","contentType":"directory"},{"name":".editorconfig","path":"wire/.editorconfig","contentType":"file"},{"name":"README.txt","path":"wire/README.txt","contentType":"file"},{"name":"config.php","path":"wire/config.php","contentType":"file"},{"name":"index.config.php","path":"wire/index.config.php","contentType":"file"}],"totalCount":7},"":{"items":[{"name":"site-blank","path":"site-blank","contentType":"directory"},{"name":"wire","path":"wire","contentType":"directory"},{"name":".gitattributes","path":".gitattributes","contentType":"file"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":"CONTRIBUTING.md","path":"CONTRIBUTING.md","contentType":"file"},{"name":"LICENSE.TXT","path":"LICENSE.TXT","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"composer.json","path":"composer.json","contentType":"file"},{"name":"htaccess.txt","path":"htaccess.txt","contentType":"file"},{"name":"index.php","path":"index.php","contentType":"file"},{"name":"install.php","path":"install.php","contentType":"file"}],"totalCount":11}},"fileTreeProcessingTime":21.503722,"foldersToFetch":[],"repo":{"id":66832303,"defaultBranch":"master","name":"processwire","ownerLogin":"processwire","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2016-08-29T09:59:35.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/944567?v=4","public":true,"private":false,"isOrgOwned":true},"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"dev","listCacheKey":"v0:1694530875.0","canEdit":false,"refType":"branch","currentOid":"38757b1baafc0d2349c50368790b20ae30867ee8"},"path":"wire/core/Tfa.php","currentUser":null,"blob":{"rawLines":["success()) {"," * $session->redirect('after/login/url/');"," * "," * } else if($tfa->active()) {"," * echo $tfa->render();"," * "," * } else if($input->post('submit_login')) {"," * $name = $input->post('name');"," * $pass = $input->post('pass');"," * $tfa->start($name, $pass); "," * "," * // the start() method performs a redirect if TFA is active for the user"," * // place your regular code to login user here, which will be used if TFA is not active for the user"," * "," * } else {"," * // render login form"," * }"," * ~~~~~~"," * "," * SETTINGS"," * @property int $codeLength Required length for authentication code (default=6)"," * @property int $codeExpire Codes expire after this many seconds (default=180)"," * @property int $codeType Type of TFA code to use, see codeType constants (default=0, which is Tfa::codeTypeDigits)"," * @property string $startUrl URL we are operating from (default='./')"," * @property int $rememberDays Number of days to \"remember this browser\", 0 to disable option, or -1 for no limit? (default=0)"," * @property array $rememberFingerprints Fingerprints to remember: agent,agentVL,accept,scheme,host,ip,fwip (default=agentVL,accept,scheme,host)"," * @property array $formAttrs Form