Commit 1f0692cd authored by Anthony Geourjon's avatar Anthony Geourjon
Browse files

Merge branch 'EDCAMPUS-69-redirection-quand-on-est-pas-connecte' into 'master'

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

See merge request !31
parents 590f0e61 0c14aff1
......@@ -356,6 +356,7 @@ var root = angular.module('myApp.controllers', ['ngSanitize', 'angulartics', 'an
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