- FIX

parent a48f7f0d
...@@ -145,6 +145,7 @@ class UserController extends \common\components\BaseController { ...@@ -145,6 +145,7 @@ class UserController extends \common\components\BaseController {
throw new BadRequestHttpException($model->getErrors('email'), 500); throw new BadRequestHttpException($model->getErrors('email'), 500);
$transaction->commit(); $transaction->commit();
echo json_encode(array('success'=>true));
} catch (Exception $e) { } catch (Exception $e) {
$transaction->rollBack(); $transaction->rollBack();
echo json_encode(array('errors'=>$e->getMessage())); echo json_encode(array('errors'=>$e->getMessage()));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment