Zitat von
Kahmoon
Diese Funktion geht bei mir in 2.11 und einer 3.4 Installation.
Dann hast Du in der 3.4er Installation aber noch alte Passwörter aus einem Update?!
in system/modules/core/library/Contao/User.php steht in der Methode login():
PHP-Code:
// The password has been generated with crypt()
if (\Encryption::test($this->password))
{
$blnAuthenticated = \Encryption::verify(\Input::postUnsafeRaw('password'), $this->password);
}
else
{
list($strPassword, $strSalt) = explode(':', $this->password);
$blnAuthenticated = ($strSalt == '') ? ($strPassword === sha1(\Input::postUnsafeRaw('password'))) : ($strPassword === sha1($strSalt . \Input::postUnsafeRaw('password')));
// Store a SHA-512 encrpyted version of the password
if ($blnAuthenticated)
{
$this->password = \Encryption::hash(\Input::postUnsafeRaw('password'));
}
}
Edit: ... bzw. Du schreibst Passwörter nach altem Muster und die werden beim erstenLogin von Contao angepasst.
Lesezeichen