浏览代码

config/app y auth para produccion.

父节点
当前提交
545d4f2446
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 1
    1
      app/config/app.php
  2. 3
    3
      app/controllers/AuthController.php

+ 1
- 1
app/config/app.php 查看文件

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

+ 3
- 3
app/controllers/AuthController.php 查看文件

@@ -28,9 +28,9 @@ class AuthController extends \BaseController
28 28
 
29 29
 		if (!$validator->fails()) {
30 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 34
 			try {
35 35
 				// User input
36 36
 				$username = str_replace('@upr.edu', '', Input::get('email'));