1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-16 10:32:08 +02:00

Remove old way to store user preferences sytem-wide

This commit is contained in:
SecretR 2014-10-24 07:41:16 +03:00
parent 08fa4d098c
commit ba633fd341

View File

@ -38,9 +38,9 @@ if (isset($_POST['update_settings']))
unset($_POST['a_password2']);
if (varsettrue($pref['allowEmailLogin']))
{
$user_prefs = unserialize($currentUser['user_prefs']);
$user_prefs = e107::getArrayStorage()->unserialize($currentUser['user_prefs']);
$user_prefs['email_password'] = $userMethods->HashPassword($new_pass, $email);
$userData['data']['user_prefs'] = serialize($user_prefs);
$userData['data']['user_prefs'] = e107::getArrayStorage()->serialize($user_prefs);
}
$userData['data']['user_pwchange'] = time();