dojox.form.PasswordValidator.pwCheck
Overridable function for validation of the old password box. This function is called and passed the old password. Return true if it's OK to continue, and false if it is not. IMPORTANT SECURITY NOTE: Do NOT EVER EVER EVER check this in HTML or JavaScript!!! You will probably want to override this function to callback to a server to verify the password (the callback will need to be syncronous) - and it's probably a good idea to validate it again on form submission before actually doing anything destructive - that's why the "oldName" value is available. And don't just fetch the password from the server either :) Send the test password (probably hashed, for security) and return from the server a status instead. Again - DON'T BE INSECURE!!! Security is left as an exercise for the reader :)
Usage
parameter | type | description |
---|---|---|
password | String |