HOR-2144
Al crear un workspace que tenga la contraseña espacios en blanco en web no ingresa pero desde un dispositivo podemos ingresar
This commit is contained in:
@@ -30,9 +30,9 @@ class newSiteProxy extends HttpProxyController
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$user = (isset( $_POST['NW_USERNAME'] )) ? trim( $_POST['NW_USERNAME'] ) : 'admin';
|
$user = (isset($_POST['NW_USERNAME'])) ? trim($_POST['NW_USERNAME']) : 'admin';
|
||||||
$pass = (isset( $_POST['NW_PASSWORD'] )) ? $_POST['NW_PASSWORD'] : 'admin';
|
$pass = (isset($_POST['NW_PASSWORD'])) ? trim($_POST['NW_PASSWORD']) : 'admin';
|
||||||
$pass1 = (isset( $_POST['NW_PASSWORD2'] )) ? $_POST['NW_PASSWORD2'] : 'admin';
|
$pass1 = (isset($_POST['NW_PASSWORD2'])) ? trim($_POST['NW_PASSWORD2']) : 'admin';
|
||||||
|
|
||||||
|
|
||||||
$ao_db_wf = (isset( $_POST['AO_DB_WF'] )) ? $_POST['AO_DB_WF'] : false;
|
$ao_db_wf = (isset( $_POST['AO_DB_WF'] )) ? $_POST['AO_DB_WF'] : false;
|
||||||
|
|||||||
@@ -744,6 +744,10 @@ Ext.onReady(function(){
|
|||||||
id: 'adminPassword',
|
id: 'adminPassword',
|
||||||
enableKeyEvents: true,
|
enableKeyEvents: true,
|
||||||
allowBlank: false,
|
allowBlank: false,
|
||||||
|
validator: function (v) {
|
||||||
|
v = v.trim();
|
||||||
|
return !/^\s+$/.test(v);
|
||||||
|
},
|
||||||
listeners: {keyup: function() {
|
listeners: {keyup: function() {
|
||||||
wizard.onClientValidation(4, false);
|
wizard.onClientValidation(4, false);
|
||||||
}}
|
}}
|
||||||
@@ -755,6 +759,10 @@ Ext.onReady(function(){
|
|||||||
id : 'confirmPassword',
|
id : 'confirmPassword',
|
||||||
enableKeyEvents: true,
|
enableKeyEvents: true,
|
||||||
allowBlank: false,
|
allowBlank: false,
|
||||||
|
validator: function (v) {
|
||||||
|
v = v.trim();
|
||||||
|
return !/^\s+$/.test(v.trim());
|
||||||
|
},
|
||||||
listeners: {keyup: function() {
|
listeners: {keyup: function() {
|
||||||
wizard.onClientValidation(4, false);
|
wizard.onClientValidation(4, false);
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -100,7 +100,11 @@ Ext.onReady(function(){
|
|||||||
inputType:'password',
|
inputType:'password',
|
||||||
value:'admin',
|
value:'admin',
|
||||||
width: 200,
|
width: 200,
|
||||||
allowBlank: false
|
allowBlank: false,
|
||||||
|
validator: function (v) {
|
||||||
|
v = v.trim();
|
||||||
|
return !/^\s+$/.test(v);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'NW_PASSWORD2',
|
id: 'NW_PASSWORD2',
|
||||||
@@ -109,7 +113,11 @@ Ext.onReady(function(){
|
|||||||
inputType:'password',
|
inputType:'password',
|
||||||
value:'admin',
|
value:'admin',
|
||||||
width: 200,
|
width: 200,
|
||||||
allowBlank: false
|
allowBlank: false,
|
||||||
|
validator: function (v) {
|
||||||
|
v = v.trim();
|
||||||
|
return !/^\s+$/.test(v);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
@@ -173,11 +181,9 @@ Ext.onReady(function(){
|
|||||||
aoDbRb =aoDbWf;
|
aoDbRb =aoDbWf;
|
||||||
aoDbRp =aoDbWf;
|
aoDbRp =aoDbWf;
|
||||||
nwUsername =formNewSite.getForm().findField('NW_USERNAME').getValue();
|
nwUsername =formNewSite.getForm().findField('NW_USERNAME').getValue();
|
||||||
nwPassword =formNewSite.getForm().findField('NW_PASSWORD').getValue();
|
nwPassword = formNewSite.getForm().findField('NW_PASSWORD').getValue().trim();
|
||||||
nwPassword2=formNewSite.getForm().findField('NW_PASSWORD2').getValue();
|
nwPassword2 = formNewSite.getForm().findField('NW_PASSWORD2').getValue().trim();
|
||||||
aoDbDrop=formNewSite.getForm().findField('AO_DB_DROP').getValue();
|
aoDbDrop=formNewSite.getForm().findField('AO_DB_DROP').getValue();
|
||||||
//Ext.getCmp('NW_TITLE').disable()=true;
|
|
||||||
//Ext.getCmp('NW_TITLE').readOnly = true;
|
|
||||||
createNW(nwTitle, aoDbWf, aoDbRb, aoDbRp, nwUsername, nwPassword, nwPassword2);
|
createNW(nwTitle, aoDbWf, aoDbRb, aoDbRp, nwUsername, nwPassword, nwPassword2);
|
||||||
},
|
},
|
||||||
failure: function(f,a){
|
failure: function(f,a){
|
||||||
|
|||||||
Reference in New Issue
Block a user