2 ============LICENSE_START==========================================
4 ===================================================================
5 Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 ===================================================================
8 Unless otherwise specified, all software contained herein is licensed
9 under the Apache License, Version 2.0 (the "License");
10 you may not use this software except in compliance with the License.
11 You may obtain a copy of the License at
13 http://www.apache.org/licenses/LICENSE-2.0
15 Unless required by applicable law or agreed to in writing, software
16 distributed under the License is distributed on an "AS IS" BASIS,
17 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 See the License for the specific language governing permissions and
19 limitations under the License.
21 Unless otherwise specified, all documentation contained herein is licensed
22 under the Creative Commons License, Attribution 4.0 Intl. (the "License");
23 you may not use this documentation except in compliance with the License.
24 You may obtain a copy of the License at
26 https://creativecommons.org/licenses/by/4.0/
28 Unless required by applicable law or agreed to in writing, documentation
29 distributed under the License is distributed on an "AS IS" BASIS,
30 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31 See the License for the specific language governing permissions and
32 limitations under the License.
34 ============LICENSE_END============================================
38 <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
39 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
40 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
41 <%@ page import="org.onap.portalsdk.core.util.SystemProperties" %>
42 <%@ page import="org.onap.portalapp.portal.utils.EPSystemProperties" %>
43 <c:set var="title" value="Login" />
44 <c:set var="isMobileEnabled"
45 value="<%=(SystemProperties.getProperty(SystemProperties.MOBILE_ENABLE)!= null && SystemProperties.getProperty(SystemProperties.MOBILE_ENABLE).trim().equals(\"true\"))%>" />
50 <link rel="shortcut icon" href="assets/images/1cc621d2.ecomp_logo.png">
54 <meta charset="utf-8">
55 <meta http-equiv="X-UA-Compatible" content="IE=edge">
56 <meta name="viewport" content="width=device-width, initial-scale=1">
57 <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
58 <script src="static/js/jquery-1.10.2.js" type="text/javascript"></script>
59 <script src= "static/ebz/angular_js/angular.js"></script>
60 <script src= "static/ebz/angular_js/angular-sanitize.js"></script>
61 <script src= "static/ebz/angular_js/gestures.js"></script>
64 font-family: Verdana,Arial,Helvetica, sans-serif;
73 text-decoration: none;
86 background-image: -webkit-linear-gradient(top, #d97b34, #b8632b);
87 background-image: -moz-linear-gradient(top, #d97b34, #b8632b);
88 background-image: -ms-linear-gradient(top, #d97b34, #b8632b);
89 background-image: -o-linear-gradient(top, #d97b34, #b8632b);
90 background-image: linear-gradient(to bottom, #d97b34, #b8632b);
91 -webkit-border-radius: 7;
92 -moz-border-radius: 7;
97 padding: 4px 10px 4px 10px;
98 text-decoration: none;
102 <body style="padding-top: 15px;">
104 String frontUrl = SystemProperties.getProperty(EPSystemProperties.FE_URL);
106 <div ng-controller="externalLoginController">
107 <div class="centered style="-webkit-transform: translateZ(0);background:white, z-index:0;">
108 <div align="center" id="errorInfo" style="display:none; float:left; font-family: Arial; font-size:12px; margin-left:5px">
109 <span style="color:red">Invalid username or password. Please try again.</span>
112 <div align="center" style="margin-left:auto;margin-right:auto;width:40%;padding:6px;background-color:white">
113 <img src="static/fusion/images/onap-portal-logo.png" height="250"/>
115 <div style="opacity: 0.7;">
116 <table class="login-tbl">
119 <label class="login-txt">Login ID:</label>
122 <input type="text" class="login-input-text" ng-model="loginId" maxlength="30" />
127 <label class="login-txt">Password:</label>
130 <input type="password" class="login-input-text" ng-model="password" maxlength="30"
131 onkeydown="if (event.keyCode == 13) document.getElementById('loginBtn').click()"/>
136 <a class="login-btn" id="loginBtn" ng-click="loginExternal();">LOGIN</a>
141 <br/><br/><br/><br/><br/><br/><br/>
145 var app=angular.module("abs", []);
146 app.controller("externalLoginController", function ($scope) {
149 $scope.viewPerPage = 200;
150 $scope.currentPage = 2;
152 $scope.searchCategory = "";
153 $scope.searchString = "";
156 $scope.loginError=true;
157 $scope.viewPerPage = 200;
158 $scope.currentPage = 2;
160 $scope.searchCategory = "";
161 $scope.searchString = "";
164 $scope.loginUrl = "";
166 $scope.loginExternal = function() {
167 var postData={loginId:$scope.loginId,password:$scope.password};
169 url: "open_source/login?",
172 contentType: 'application/json',
173 data: JSON.stringify(postData),
174 success:function (response){
175 if(response.success=="success"){
176 //window.location.href = 'applicationsHome';
177 window.location.href= "<%=frontUrl%>",
178 sessionStorage.setItem('userId',$scope.loginId)
180 $("#errorInfo span").text(response);
181 //$("#errorInfo").text = response;
182 $("#errorInfo").show();
185 error:function( jqXHR, status,error ){
186 $("#errorInfo").show();