Pannous

Pannous Commit Details

Date:2020-11-27 10:25:52 (9 months 23 days ago)
Author:Grégory Soutadé
Branch:master
Commit:5bda0206aa255d22be02b7079f58f6cf4b0eef4c
Parents: 61eef813e2a8c2fbb747d2edd0247dea21b56540
Message:Fix two errors : default value for salt at user creation and set salt to user object, not only database side

Changes:
Mfuel/app/classes/model/users.php (2 diffs)

File differences

fuel/app/classes/model/users.php
4747
4848
4949
50
51
5052
5153
5254
......
142144
143145
144146
145
147
148
149
146150
147151
148152
149153
150154
151
155
'salt' => array(
'data_type' => 'varchar',
'form' => array('type' => false),
'default' => '',
'validation' => array('max_length' => array(32)),
),
'group' => array(
'data_type' => 'int',
);
$user = Model_Users::query()->where('email', $email)->get_one();
$user->set(array('salt' => openssl_random_pseudo_bytes (32)));
$salt = openssl_random_pseudo_bytes (32);
$user->set(array('salt' => $salt));
$user->salt = $salt;
return $user;
}
}
?>
?>

Archive Download the corresponding diff file

Branches