Browse Source

config/app y auth para produccion.

parent
commit
545d4f2446
2 changed files with 4 additions and 4 deletions
  1. 1
    1
      app/config/app.php
  2. 3
    3
      app/controllers/AuthController.php

+ 1
- 1
app/config/app.php View File

15
 
15
 
16
 	//'debug' => $_ENV['APP_DEBUG'] ?: false,
16
 	//'debug' => $_ENV['APP_DEBUG'] ?: false,
17
 
17
 
18
-	'debug' => true,
18
+	'debug' => false,
19
 	/*
19
 	/*
20
 	|--------------------------------------------------------------------------
20
 	|--------------------------------------------------------------------------
21
 	| Application URL
21
 	| Application URL

+ 3
- 3
app/controllers/AuthController.php View File

28
 
28
 
29
 		if (!$validator->fails()) {
29
 		if (!$validator->fails()) {
30
 			//			TODO: Remove this for production environment
30
 			//			TODO: Remove this for production environment
31
-			if (App::environment('local', 'staging')) {
32
-				return $this->processLogin();
33
-			}
31
+// 			if (App::environment('local', 'staging')) {
32
+// 				return $this->processLogin();
33
+// 			}
34
 			try {
34
 			try {
35
 				// User input
35
 				// User input
36
 				$username = str_replace('@upr.edu', '', Input::get('email'));
36
 				$username = str_replace('@upr.edu', '', Input::get('email'));