Skip to content

Commit

Permalink
Make sure there is a csrf token for login
Browse files Browse the repository at this point in the history
  • Loading branch information
Delawen committed May 22, 2017
1 parent 0182b98 commit b906716
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions web-ui/src/main/resources/catalog/js/LoginController.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@
$scope.signinFailure = gnUtilityService.getUrlParameter('failure');
$scope.gnConfig = gnConfig;

//If no csrf, ask for one:
if(!$rootScope.csrf) {
$http.post('info?type=me');
}

function initForm() {
if ($window.location.pathname.indexOf('new.password') !== -1) {
// Retrieve username from URL parameter
Expand Down

0 comments on commit b906716

Please sign in to comment.