File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 33class MyAuth_User_Controller extends Base_Controller{
44
55 public static $ rules = array (
6- 'email ' => 'required|email|unique:users ' ,
7- 'password ' => 'required|confirmed '
8- );
6+ 'email ' => 'required|email|unique:users ' ,
7+ 'password ' => 'required|confirmed '
8+ );
99
1010 public function action_signup (){
1111
12- $ validation = Validator::make ( Input::all (), static ::$ rules );
13-
14- if ($ validation ->fails ()){
15- return Redirect::to ('signup ' )->with_errors ($ validation ->errors );
16- }
12+ $ validation = Validator::make ( Input::all (), static ::$ rules );
13+
14+ if ($ validation ->fails ()){
15+ return Redirect::to ('signup ' )->with_errors ($ validation ->errors );
16+ }
1717
18- $ user_data = array ( 'email ' => Input::get ('email ' ), 'password ' => Hash::make (Input::get ('password ' )) );
18+ $ user_data = array ( 'email ' => Input::get ('email ' ), 'password ' => Hash::make (Input::get ('password ' )) );
1919
2020 $ user = new User ($ user_data );
2121 $ user ->save ();
@@ -52,4 +52,4 @@ public function action_login(){
5252
5353 }
5454
55- }
55+ }
You can’t perform that action at this time.
0 commit comments