mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-20 03:19:13 -04:00
Added content type to JSON output functions
This commit is contained in:
@@ -25,6 +25,7 @@ class Users_Controller extends REST_Controller {
|
||||
access::forbidden();
|
||||
}
|
||||
|
||||
rest::http_content_type(rest::JSON);
|
||||
$form = user::get_edit_form($user);
|
||||
$form->edit_user->password->rules("-required");
|
||||
if ($form->validate()) {
|
||||
|
||||
Reference in New Issue
Block a user