Advertisement
AMONRA75

login result php

Jul 19th, 2012
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. if(Ext.getCmp('user').getValue() !== '' && Ext.getCmp('password').getValue() !== ''){
  2. form.getForm().submit({
  3. url: 'authenticate.php',
  4. method: 'POST',
  5. params: {
  6. response: hex_md5(Ext.getCmp('challenge').getValue()+hex_md5(Ext.getCmp('password').getValue()))
  7. },
  8. success: function(){
  9. window.location = 'yourpage.php';
  10. },
  11. failure: function(form, action){
  12. Ext.MessageBox.show({
  13. title: 'Error',
  14. msg: action.result.message,
  15. buttons: Ext.Msg.OK,
  16. icon: Ext.MessageBox.ERROR
  17. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement