<commit_before><%@include file="/WEB-INF/jsp/include.jsp" %>
<tiles:insertDefinition name="app-base" >
	<tiles:putAttribute name="title">
		Duradmin: Login
	</tiles:putAttribute>
	
	<tiles:putAttribute name="header-extensions">
		<link rel="stylesheet"  href="${pageContext.request.contextPath}/style/login.css" type="text/css" />
	</tiles:putAttribute>
	
	<tiles:putAttribute name="body">
		<script type="text/javascript">
			$(document).ready(function(){
				$("#username").focus();
				
				var login = function(){
					var loginForm = $("#loginForm");
					var message =$("#msg-error");
					var feedback = $("#feedback");
					message.makeHidden();
					feedback.fadeIn();					

					$.ajax({
						type:"POST",
						url: "/duradmin/j_spring_security_check",
						data: loginForm.serialize(), 
					  	success: function(data) {
   						  feedback.fadeOut();					
						  dc.debug("data="+data);
						  if(data.indexOf("Login") > 0){
							  message.makeVisible();
							  message.fadeIn();
						  }else{
	 						  location.reload();
						  }
					  },
					  error: function(){
						  feedback.fadeOut();					
						  alert("login error");
					  },

					});
				};
				
				$("#button-login").click(function(evt){
					evt.stopPropagation();
					login();
				});<commit_msg>possible fix for https://jira.duraspace.org/browse/DURACLOUD-256: on some machines/browsers not able to log into duradmin<commit_after><%@include file="/WEB-INF/jsp/include.jsp" %>
<tiles:insertDefinition name="app-base" >
	<tiles:putAttribute name="title">
		Duradmin: Login
	</tiles:putAttribute>
	
	<tiles:putAttribute name="header-extensions">
		<link rel="stylesheet"  href="${pageContext.request.contextPath}/style/login.css" type="text/css" />
	</tiles:putAttribute>
	
	<tiles:putAttribute name="body">
		<script type="text/javascript">
			$(document).ready(function(){
				$("#username").focus();
				
				var login = function(){
					var loginForm = $("#loginForm");
					var message =$("#msg-error");
					var feedback = $("#feedback");
					message.makeHidden();
					feedback.fadeIn();					

					$.ajax({
						type:"POST",
						url: "/duradmin/j_spring_security_check",
						data: loginForm.serialize(), 
						cache: false,
					  	success: function(data) {
   						  feedback.fadeOut();					
						  dc.debug("data="+data);
						  if(data.indexOf("Login") > 0){
							  message.makeVisible();
							  message.fadeIn();
						  }else{
	 						  location.reload();
						  }
					  },
					  error: function(){
						  feedback.fadeOut();					
						  alert("login error");
					  },

					});
				};
				
				$("#button-login").click(function(evt){
					evt.stopPropagation();
					login();
				});
{'fraction_non_alphanumeric': 0.17859778597785977, 'fraction_numerical': 0.0018450184501845018, 'mean_word_length': 2.668470906630582, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 23, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4326083', 'n_tokens_mistral': 1195, 'n_tokens_neox': 823, 'n_words': 134}