Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(Ext.getCmp('user').getValue() !== '' && Ext.getCmp('password').getValue() !== ''){
- form.getForm().submit({
- url: 'authenticate.php',
- method: 'POST',
- params: {
- response: hex_md5(Ext.getCmp('challenge').getValue()+hex_md5(Ext.getCmp('password').getValue()))
- },
- success: function(){
- window.location = 'yourpage.php';
- },
- failure: function(form, action){
- Ext.MessageBox.show({
- title: 'Error',
- msg: action.result.message,
- buttons: Ext.Msg.OK,
- icon: Ext.MessageBox.ERROR
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement