Commit 0c14aff1 authored by EXT Biller Florian's avatar EXT Biller Florian
Browse files

Redirection quand on est pas connecté vers http://localhost/app/login

parent dcd696e3
......@@ -359,6 +359,7 @@ controller('CommonCtrl', ['$scope','$serverFactory','$routeParams','$rootScope',
if(next.indexOf("/login")!=-1 && current.indexOf("/login") == -1 && current.indexOf("/reset") == -1 && current.indexOf("/register") == -1){
localStorage.savedPath = current;
$scope._closeSession();
}
if(next.indexOf("/logout")!=-1){
......
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