Commit 65654395 authored by Evren Kutar's avatar Evren Kutar

temp fix for login case

parent 29f5334e
......@@ -9,7 +9,7 @@
// TODO: login url change with correct one
login.factory('LoginService', function ($http, $rootScope, $location, Session, RESTURL) {
login.factory('LoginService', function ($http, $rootScope, $location, $log, Session, RESTURL) {
var loginService = {};
loginService.login = function (credentials) {
......@@ -21,6 +21,8 @@ login.factory('LoginService', function ($http, $rootScope, $location, Session, R
return $http
.get(RESTURL.url + 'login' + getParams)
.then(function (res) {
$log.info(res.data[0]);
res.data = res.data[0];
if (res.data.success){
$rootScope.loggedInUser = true;
$location.path("/dashboard");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment