Skip to content

Commit

Permalink
Merge pull request #7 from jpbeaulieu/add-custom-login-template-from-…
Browse files Browse the repository at this point in the history
…export

Add custom login template from export
  • Loading branch information
akagadovskiy committed Apr 5, 2016
2 parents 2e4ee7f + 11dbd3d commit eaeaab8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions build/ng-admin.jwt-auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ ngAdminJWTAuth.config(['$stateProvider', '$httpProvider', function ($stateProvid
if (!template) {
return require('./loginTemplate');
}

if (!template.endsWith('.html')) {
return template;
}

return $http.get(template).then(function(response){
return response.data;
Expand Down
4 changes: 2 additions & 2 deletions build/ng-admin.jwt-auth.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions js/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ ngAdminJWTAuth.config(['$stateProvider', '$httpProvider', function ($stateProvid
if (!template) {
return require('./loginTemplate');
}

if (!template.endsWith('.html')) {
return template;
}

return $http.get(template).then(function(response){
return response.data;
Expand Down

0 comments on commit eaeaab8

Please sign in to comment.