I have a password field that I want to convert to a more secure string before POST submit.
I tried some code that you can se below. The problem I have with this code is that i end up with two FORM NAME "password" and "password". One is generated from Ext.lib.Ajax.formRequest and the other generated from Action.getParams(). Do anyone know how I can make this work?
Code:
myForm.on('beforeaction', function(form, action) {
var passwordValue = form.items.item(1).getValue();
form.baseParams = {};
form.baseParams['password'] = hex_md5(passwordValue + key);
});