Some other bug fixes

Signed-Off-By: Lakshay arora <arora.lakshya123@gmail.com>
This commit is contained in:
Lakshay arora 2018-05-12 14:50:34 +05:30
parent 3a52e20559
commit 568bc133cb
7 changed files with 30 additions and 9 deletions

View File

@ -366,9 +366,12 @@ var AJAX = {
AJAX.xhr = null;
return;
} else if(typeof data.logged_in !== 'undefined' && data.logged_in == 1) {
if($("#modalOverlay")) {
if($("#modalOverlay").length) {
$("#modalOverlay").remove();
}
if(typeof data.new_token !== 'undefined') {
$("input[name=token]").val(data.new_token);
}
}
$('html, body').animate({ scrollTop: 0 }, 'fast');

View File

@ -986,9 +986,9 @@ AJAX.registerOnload('functions.js', function () {
}
else {
$('body').append(data.error);
}
if($("#input_username").length) {
$("#input_username").focus();
$(".ui-dialog").each(function(i) {
$("#" + $(this).attr("aria-describedby")).dialog("close");
});
}
_idleSecondsCounter = 0;
}

View File

@ -524,6 +524,10 @@ class AuthenticationCookie extends AuthenticationPlugin
'success',
1
);
$response->addJSON(
'new_token',
$_SESSION[' PMA_token ']
);
if($user_changed) {
$response->addJSON(
'user_changed',

View File

@ -1879,6 +1879,7 @@ class Util
. self::showDocu('faq', 'faqmissingparameters', true)
. '[br]';
$found_error = true;
var_dump($GLOBALS);
}
}
if ($found_error) {

View File

@ -789,7 +789,7 @@ $cfg['LoginCookieRecall'] = true;
*
* @global integer $cfg['LoginCookieValidity']
*/
$cfg['LoginCookieValidity'] = 1440;
$cfg['LoginCookieValidity'] = 10;
/**
* how long login cookie should be stored (in seconds)

View File

@ -621,15 +621,24 @@ body#loginform div.container {
margin: 0 auto;
}
div.container.overlay {
div.container.modal_form {
margin: 0 auto;
width: 30em;
text-align: center;
position: fixed;
top: 10%;
left: 40%;
background: #fff;
z-index: 999;
}
div#modalOverlay {
position: fixed;
top: 0;
left: 0;
height: 100%;
width: 100%;
background: #fff;
z-index: 900;
}
form.login label {
float: <?php echo $left; ?>;
width: 10em;

View File

@ -909,6 +909,10 @@ div.container.modal_form {
z-index: 999;
}
#input_username {
z-index: 999;
}
div#modalOverlay {
position: fixed;
top: 0;