From 36abf2f4b085ba2502aa257c1672f92b0be0b7d4 Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Thu, 3 Mar 2016 18:53:49 -0600 Subject: [PATCH] Settings controller is a login controller. --- web/js/easyctf.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/js/easyctf.js b/web/js/easyctf.js index 69cad28..4d3d71c 100644 --- a/web/js/easyctf.js +++ b/web/js/easyctf.js @@ -190,7 +190,7 @@ app.controller("adminProblemsController", ["$controller", "$scope", "$http", fun }]); app.controller("settingsController", ["$controller", "$scope", "$http", function($controller, $scope, $http) { - $controller("mainController", { $scope: $scope }); + $controller("loginController", { $scope: $scope }); $.get("/api/user/info", {}, function(result) { if (result["success"] == 1) { $scope.user = result["user"];