Pannous

Pannous Commit Details

Date:2018-04-25 20:11:22 (2 years 7 months ago)
Author:Grégory Soutadé
Branch:master
Commit:f5a18a75d4e25f10b216318bdd3e8a25b20cd3a4
Parents: 036ad1464ee7d903df2609c5bed15dfa3de438cc
Message:Add a parameter to simpleauth package to force password update without old password

Changes:
Mfuel/packages/auth/classes/auth/login/simpleauth.php (1 diff)

File differences

fuel/packages/auth/classes/auth/login/simpleauth.php
301301
302302
303303
304
304
305
306
305307
306308
307309
308310
309311
310
312
311313
312314
313315
throw new \SimpleUserUpdateException('Username cannot be changed.', 5);
}
if (array_key_exists('password', $values))
{
{
if (!isset($values['force_new_password']))
{
if (empty($values['old_password'])
or $current_values->get('password') != $this->hash_password(trim($values['old_password'])))
{
throw new \SimpleUserWrongPassword('Old password is invalid');
}
}
$password = trim(strval($values['password']));
if ($password === '')
{

Archive Download the corresponding diff file

Branches