Explorar o código

Get the user the proper way.

Michael Francis %!s(int64=14) %!d(string=hai) anos
pai
achega
797d6ffc9f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      controllers/UsersController.php

+ 1 - 1
controllers/UsersController.php

@@ -170,7 +170,7 @@ class UsersController extends \lithium\action\Controller {
 		{
 			$user = Auth::check('default');
 			if ($user) {
-				$user = User::create($user, array('exists' => true));
+				$user = User::find($user['_id']);
 				$user->post($this->request->data);
 			}