{"action":"created","issue":{"url":"https://api.github.com/repos/wet-boew/wet-boew/issues/7036","labels_url":"https://api.github.com/repos/wet-boew/wet-boew/issues/7036/labels{/name}","comments_url":"https://api.github.com/repos/wet-boew/wet-boew/issues/7036/comments","events_url":"https://api.github.com/repos/wet-boew/wet-boew/issues/7036/events","html_url":"https://github.com/wet-boew/wet-boew/issues/7036","id":101710019,"number":7036,"title":"Equal to validation","user":{"login":"Spock07","id":13855811,"avatar_url":"https://avatars.githubusercontent.com/u/13855811?v=3","gravatar_id":"","url":"https://api.github.com/users/Spock07","html_url":"https://github.com/Spock07","followers_url":"https://api.github.com/users/Spock07/followers","following_url":"https://api.github.com/users/Spock07/following{/other_user}","gists_url":"https://api.github.com/users/Spock07/gists{/gist_id}","starred_url":"https://api.github.com/users/Spock07/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Spock07/subscriptions","organizations_url":"https://api.github.com/users/Spock07/orgs","repos_url":"https://api.github.com/users/Spock07/repos","events_url":"https://api.github.com/users/Spock07/events{/privacy}","received_events_url":"https://api.github.com/users/Spock07/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-18T17:41:26Z","updated_at":"2015-08-18T18:29:04Z","closed_at":null,"body":"Recently I ran into an issue with the \"equal to\" validation, I know it is intended for validating passwords and works fine. However it has been used for validating emails and it has an issue. The validation works but it requires that the email to validate using Case sensitive. Since emails are not case sensitive we need an email equal to method that does not validate case. Is this possible?"},"comment":{"url":"https://api.github.com/repos/wet-boew/wet-boew/issues/comments/132308921","html_url":"https://github.com/wet-boew/wet-boew/issues/7036#issuecomment-132308921","issue_url":"https://api.github.com/repos/wet-boew/wet-boew/issues/7036","id":132308921,"user":{"login":"LaurentGoderre","id":1090826,"avatar_url":"https://avatars.githubusercontent.com/u/1090826?v=3","gravatar_id":"","url":"https://api.github.com/users/LaurentGoderre","html_url":"https://github.com/LaurentGoderre","followers_url":"https://api.github.com/users/LaurentGoderre/followers","following_url":"https://api.github.com/users/LaurentGoderre/following{/other_user}","gists_url":"https://api.github.com/users/LaurentGoderre/gists{/gist_id}","starred_url":"https://api.github.com/users/LaurentGoderre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LaurentGoderre/subscriptions","organizations_url":"https://api.github.com/users/LaurentGoderre/orgs","repos_url":"https://api.github.com/users/LaurentGoderre/repos","events_url":"https://api.github.com/users/LaurentGoderre/events{/privacy}","received_events_url":"https://api.github.com/users/LaurentGoderre/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T18:29:04Z","updated_at":"2015-08-18T18:29:04Z","body":"To add a custom validator you need to do:\r\n\r\n```javascript\r\nwb.doc.on( \"wb-ready.wb-frmvld\", \".wb-frmvld\", function( event ) {\r\n    $.validator.addMethod(\"equalTo\", function(value, element) {\r\n\r\n    });\r\n});\r\n```\r\n\r\nMake sure that another rule doesn't already exist for it though"}}