Settings controller is a login controller.

This commit is contained in:
Michael Zhang 2016-03-03 18:53:49 -06:00
parent 6142d0e75d
commit 36abf2f4b0

View file

@ -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"];