private function updateUserPassword(ChangedPassword $payload) { $identifier = ['userIdentifier' => $payload->userIdentifier()->toString()]; $data = []; $data['hashedPassword'] = $payload->newPassword()->toString(); $data['at'] = $payload->at()->format('Y-m-d H:i:s'); $this->connection->update($this->table, $data, $identifier); }
/** * @param ChangedPassword $changedPassword */ public function applyChangedPassword(ChangedPassword $changedPassword) { $this->hashedPassword = $changedPassword->newPassword(); }