Commit c2b396e5 authored by Evren Kutar's avatar Evren Kutar

v0.0.3 FIX: error 403 but logged in

parent 5b6df6ca
...@@ -56,6 +56,8 @@ app.config(['$httpProvider', function ($httpProvider) { ...@@ -56,6 +56,8 @@ app.config(['$httpProvider', function ($httpProvider) {
} }
if(rejection.status === 403) { if(rejection.status === 403) {
if (rejection.data.is_login == true){ if (rejection.data.is_login == true){
$rootScope.loggedInUser = true;
console.log('user logged in');
if($location.path()==="/login"){ if($location.path()==="/login"){
$location.path("/dashboard"); $location.path("/dashboard");
} }
......
This diff is collapsed.
This diff is collapsed.
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