getIdentity(); $this->setPrimaryKey($identity['data']['id']); return $this; } public function getStsAuthCode() { return $this->_getTable()->search($this->_primaryKey, 'stsLoginCode'); } public function getStsLoginEnabled() { return $this->_getTable()->search($this->_primaryKey, 'stsLoginEnabled'); } public function updateStsLoginCode($code) { $data = array( 'stsLoginCode' => $code ); $this->_getTable()->updateByKey($data, $this->_primaryKey); return $this; } }