From d79bd1ae40482499dd1922838ba75bd448cad064 Mon Sep 17 00:00:00 2001 From: Daniel Camargo Date: Mon, 19 Aug 2013 12:32:46 -0300 Subject: [PATCH] test plan - password reset --- include/controllers/default/crunchbutton/api/user/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/controllers/default/crunchbutton/api/user/index.php b/include/controllers/default/crunchbutton/api/user/index.php index 3a03e4789..3a36ddba1 100644 --- a/include/controllers/default/crunchbutton/api/user/index.php +++ b/include/controllers/default/crunchbutton/api/user/index.php @@ -136,11 +136,11 @@ class Controller_api_user extends Crunchbutton_Controller_Rest { // Send the code by email if( filter_var( $_POST[ 'email' ], FILTER_VALIDATE_EMAIL ) ){ - /*$mail = new User_Auth_Reset_Email( [ + $mail = new User_Auth_Reset_Email( [ 'code' => $code, 'email' => $email ] ); - $mail->send();*/ + $mail->send(); } // Send the code by sms else {