Skip to content

Commit

Permalink
[AdminTL#83] Login: add option to go on subscribe directly by /login?…
Browse files Browse the repository at this point in the history
…subscribe
  • Loading branch information
mathben committed Mar 25, 2018
1 parent 5a9d023 commit 1a7f9bf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/web/resources/js/tl_module/login_ctrl/login_ctrl.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Formulaire de Traitre-Lame
characterApp.controller("login_ctrl", ['$scope', '$routeParams', function ($scope, $routeParams) {
$scope.show_login = true;
characterApp.controller("login_ctrl", ["$scope", "$routeParams", "$window", function ($scope, $routeParams, $window) {
$scope.show_login = !($window.location.search.indexOf("?subscribe") >= 0);
$scope.invalid_login = false;

$scope.log_facebook = function (e) {
Expand Down Expand Up @@ -60,7 +60,6 @@ characterApp.directive('fieldMatch', function () {
function validate(value) {
var isValid = scope.$eval(attr.fieldMatch) == value;
ngModel.$setValidity('fieldMatch', isValid);
console.log(isValid);
return isValid ? value : undefined;
}
}
Expand Down

0 comments on commit 1a7f9bf

Please sign in to comment.