frontend: hardcode special social engineering challenge

This commit is contained in:
nemunaire 2020-01-16 17:15:34 +01:00
commit 1833a7550d
3 changed files with 126 additions and 1 deletions

View file

@ -79,7 +79,12 @@ angular.module("FICApp", ["ngRoute", "ngSanitize"])
})
.when("/:theme/:exercice", {
controller: "ExerciceController",
templateUrl: "views/defi.html"
templateUrl: function(e) {
if (e.theme == "BlueMoney" && e.exercice == "JackSpearrow")
return "views/defi-SE.html"
else
return "views/defi.html";
}
})
.when("/", {
controller: "HomeController",