View Full Version : Password field -as simple as possible
joshokn
4 Jan 2008, 7:37 PM
Just write a simple password widget which you can use in the form just like this :
{
xtype:'passwordfield',
name: 'XXX',
fieldLabel: 'XXXXX'
}
It's simple!
krycek
4 Jan 2008, 7:59 PM
You can use a 'textfield'.
From docs:
inputType : String
The type attribute for input fields -- e.g. radio, text, password (defaults to "text").
JorisA
6 Jan 2008, 8:26 AM
One thing that would be nice is to be able to attach a hook on submit, something like
{
xtype:'passwordfield',
name: 'pw',
fieldLabel: 'password',
encrypt: function(val) {
var salt = '3dk509s';
val = sha1(val);
return sha1(salt + ';' + val);
}
}
I've been messing around a bit with the getValue method, but afaik this is not used when serializing a form. (this is done somewere in ext-base ajax handling)
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.