components()->has('FormProtection')) { $this->FormProtection->setConfig( 'unlockedActions', [ 'login', 'webauthn2faRegister', 'webauthn2faRegisterOptions', 'webauthn2faAuthenticate', 'webauthn2faAuthenticateOptions', ], ); } } protected ?Table $_usersTable = null; /** * Gets the users table instance * * @return \Cake\ORM\Table */ public function getUsersTable() { if ($this->_usersTable instanceof Table) { return $this->_usersTable; } $this->_usersTable = TableRegistry::getTableLocator()->get(Configure::read('Users.table')); return $this->_usersTable; } /** * Set the users table * * @param \Cake\ORM\Table $table table * @return void */ public function setUsersTable(Table $table) { $this->_usersTable = $table; } }