php - Customer cannot login after magento upgrade from 1.7 to 1.9.1 -


i upgraded magento 1.7 1.9.1. features seems working including added extensions.

when customer trying login, redirects login page error.

invalid login or password. 

i tried adding formkey code login form no success in logging in. used both formkey codes found posted users, works lots of other users

    <?php echo $this->getblockhtml('formkey'); ?> 

and

    <input type="hidden" name="form_key" value="<?php echo mage::getsingleton('core/session')->getformkey(); ?>" /> 

is because password stored in different format in magento 1.9.1 in magento 1.7?

anyone has other solutions?

solution: in case, encryption method. previously, magento setup had, used have sha256 encryption rather md5. formkey should have worked guess if did not had encryption. had change

app/code/local/mage/core/model/encryption.php

public function hash($data) {return md5($data);} 

to

public function hash($data) {return hash('sha256', $data);} 

Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -