mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-11 17:53:50 -04:00
Don't override the password in the database if it's empty in the form.
Fixes ticket #995.
This commit is contained in:
@@ -29,7 +29,9 @@ class Users_Controller extends Controller {
|
||||
try {
|
||||
$valid = $form->validate();
|
||||
$user->full_name = $form->edit_user->full_name->value;
|
||||
$user->password = $form->edit_user->password->value;
|
||||
if ($form->edit_user->password->value) {
|
||||
$user->password = $form->edit_user->password->value;
|
||||
}
|
||||
$user->email = $form->edit_user->email->value;
|
||||
$user->url = $form->edit_user->url->value;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user