i am learning Backbone.js at the moment, so sorry if my question is nooby 😛
in my program i check my data at server-side to be correct and etc … but i was wondering what will happen if users change the data stored in models using Console in FireBug for example and try .save() or .fetch().
is there any way to stop such actions ?
considering all my data is going to be stored in models and can be easily retrieved by users i am not really comfortable using backbone.js, is it just me or is there something wrong here ?!
A simple and safety way is to include the user credentials (username and password) into your model and check it on the server side to each AJAX calls.
To avoid so much bdd requets, you can also generate an associated array of
id => serial keyto each logged user on the server side and return it byfetch()during the auth proccess, then, check if the id and the serial key you generated match to each AJAX calls.