whoopsi
parent
bef25b40f8
commit
b0463bd7d5
|
@ -298,14 +298,12 @@ function handshake()
|
||||||
//the access was not granted, give the user a message
|
//the access was not granted, give the user a message
|
||||||
if(!receivedClientVars && obj.accessStatus)
|
if(!receivedClientVars && obj.accessStatus)
|
||||||
{
|
{
|
||||||
$('.passForm').submit(function(){
|
$('.passForm').submit(pad.savePassword);
|
||||||
require(module.id).savePassword();
|
|
||||||
});
|
|
||||||
|
|
||||||
if(obj.accessStatus == "deny")
|
if(obj.accessStatus == "deny")
|
||||||
{
|
{
|
||||||
$('#loading').hide();
|
$('#loading').hide();
|
||||||
$("#permissionDenied").show());
|
$("#permissionDenied").show();
|
||||||
}
|
}
|
||||||
else if(obj.accessStatus == "needPassword")
|
else if(obj.accessStatus == "needPassword")
|
||||||
{
|
{
|
||||||
|
@ -318,9 +316,7 @@ function handshake()
|
||||||
$('#loading').hide();
|
$('#loading').hide();
|
||||||
$('#wrongPassword').show();
|
$('#wrongPassword').show();
|
||||||
$("#passwordinput").focus();
|
$("#passwordinput").focus();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//if we haven't recieved the clientVars yet, then this message should it be
|
//if we haven't recieved the clientVars yet, then this message should it be
|
||||||
|
|
Loading…
Reference in New Issue