Skip to content
Snippets Groups Projects
Commit bc8ef11e authored by Mirco Nasuti's avatar Mirco Nasuti
Browse files

delete useless static file

parent 3f052303
No related branches found
No related tags found
No related merge requests found
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Demo</title>
<meta name="description" content="" />
<meta name="viewport" content="width=device-width" />
<base href="/" />
<link rel="stylesheet" type="text/css"
href="/webjars/bootstrap/css/bootstrap.min.css" />
<script type="text/javascript" src="/webjars/jquery/jquery.min.js"></script>
<script type="text/javascript"
src="/webjars/bootstrap/js/bootstrap.min.js"></script>
</head>
<body ng-app="app" ng-controller="home as home">
<h1>Login</h1>
<div class="container" ng-show="!home.authenticated">
<!-- keep it empty -->
</div>
<div class="container" ng-show="home.authenticated">
<p>
Hello <span ng-bind="home.user"></span> !
<br />
You are being redirected to the Medical Informatics Platform... Please wait...
</p>
</div>
<script type="text/javascript" src="/webjars/angularjs/angular.min.js"></script>
<script type="text/javascript">
angular
.module("app", [])
.config(
function($httpProvider) {
$httpProvider.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
}).controller("home", function($http, $location) {
var self = this;
$http.get("/user").success(function(data) {
self.user = data.userAuthentication.details.displayName;
self.email = data.userAuthentication.details.emails[0].value;
self.authenticated = true;
window.location.href = "http://frontend/#/home";
}).error(function() {
self.user = "N/A";
self.email = "N/A";
self.authenticated = false;
});
});
</script>
</body>
</html>
\ No newline at end of file
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