Mevrael / bunny

BunnyJS - Lightweight native (vanilla) JavaScript (JS) and ECMAScript 6 (ES6) browser library, package of small stand-alone components without dependencies: FormData, upload, image preview, HTML5 validation, Autocomplete, Dropdown, Calendar, Datepicker, Ajax, Datatable, Pagination, URL, Template engine, Element positioning, smooth scrolling, routing, inversion of control and more. Simple syntax and architecture. Next generation jQuery and front-end framework. Documentation and examples available.
https://bunnyjs.com
MIT License
486 stars 39 forks source link

form validation capitalize #4

Closed fzone closed 7 years ago

fzone commented 8 years ago

Hi, i trying live demo of form validation. When i try test@test.com it gives 'This email is already in use!' but when using Test@test.com it passed.

Mevrael commented 8 years ago

Hi, @fzone

Thank you for report.

Well, in the case of ajax validation everything depends on how server processes the data and it is not Bunny Validation's problem.

In demo I use very simple plain PHP script to compare GET param with direct hardcoded string and because of that it failed since two strings wasn't equal. In real app on backend you will use any framework or ORM and usually won't have this problem.

Anyway I updated that PHP script on demo so it now ignores case.

Thanks again, let me know if you will have any other feedback, ideas or proposals.