srchub-old

srchub-old Commit Details


Date:2014-08-21 21:58:00 (10 years 1 month ago)
Author:Natalie Adams
Branch:default
Commit:55305a934bac
Parents: 4923c6efe552
Message:Fixing bug where password would not be hashed in database if user updated password

This affected admin and user interfaces
Changes:
Mindefero/src/IDF/Form/Admin/UserUpdate.php (1 diff)
Mindefero/src/IDF/Form/UserAccount.php (1 diff)

File differences

indefero/src/IDF/Form/Admin/UserUpdate.php
315315
316316
317317
318
318319
319320
320321
if ($password1 != $password2) {
throw new Pluf_Form_Invalid(__('The passwords do not match. Please give them again.'));
}
$this->cleaned_data["password"] = base64_encode(sha1($this->cleaned_data['password'], true));
}
return $this->cleaned_data;
}
indefero/src/IDF/Form/UserAccount.php
479479
480480
481481
482
482483
483484
484485
if ($password1 != $password2) {
throw new Pluf_Form_Invalid(__('The passwords do not match. Please give them again.'));
}
$this->cleaned_data["password"] = base64_encode(sha1($this->cleaned_data['password'], true));
}
return $this->cleaned_data;

Archive Download the corresponding diff file

Branches

Tags

Page rendered in 0.44174s using 14 queries.