-
-
Notifications
You must be signed in to change notification settings - Fork 440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PR 546 - Avoid session invalidation when changing session lifetime - kills my deployment #2212
Comments
confirmed
@colinmollenhour there's actually nothing that creates and populates that password_created_at column, but maybe should be just an alias? |
so, password_created_at it's a customer attribute, but it's not in the customer_entity table as used by #546 |
Can you see if the following patch for file /**
* Get password created at timestamp for a customer by id
*
* @param int $customerId
* @return int|false
*/
public function getPasswordTimestamp($customerId)
{
$field = $this->_getReadAdapter()->getIfNullSql('t2.value', 't0.created_at');
$select = $this->_getReadAdapter()->select()
->from(['t0' => $this->getEntityTable()], ['password_created_at' => $field])
->joinLeft(
['t1' => $this->getTable('eav/attribute')],
't0.entity_type_id = t1.entity_type_id',
[]
)
->joinLeft(
['t2' => $this->getTable(['customer/entity', 'datetime'])],
't1.attribute_id = t2.attribute_id',
[]
)
->where('t0.entity_id = ?', $customerId)
->where('t1.attribute_code = ?', 'password_created_at');
$value = $this->_getReadAdapter()->fetchOne($select);
if ($value && !is_numeric($value)) { // Convert created_at string to unix timestamp
$value = Varien_Date::toTimestamp($value);
}
return $value;
} |
This has resolved the issue. |
…nown column 'password_created_at' in 'field list'
PR #546 kills my deployment.
The
password_created_at
column is indeed not present in thecustomer_entity
table.password_created_at
is however available as an EAV customer attribute.Steps to reproduce (*)
Any ideas?
The text was updated successfully, but these errors were encountered: