Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ($('#inPrefPass').val().length > 5) {
- $.ajax('welcome/validate_user', {
- async: false,
- type: 'POST',
- data: {
- username: UserData.userName,
- password: $('#inPrefPass').val()
- },
- success: function (json) {
- json = $.parseJSON(json);
- if (json.success === 0) { // Handle failure
- loader.fadeOut();
- self.props.element.children.show();
- return false; // Will this return to '//handle success' ??
- }
- else break; // Success was good, carry out
- }
- }); //end ajax
- // handle successful validation
- }
Add Comment
Please, Sign In to add comment