reset password
Author Message
jkerby
Posts: 12
Posted 23:29 Apr 20, 2013 |

Hi All.

I am having trouble understanding what exactly this means:

User authentication must happen on the server side, i.e. you cannot use JavaScript to validate username/password on the client side.

-Can I do the logic for this for example in a do post?

-Comparing what the user put in the input field to a value in a pre set array of users?

-If not what is the correct way to go about this?

dthomas5
Posts: 38
Posted 23:39 Apr 20, 2013 |

basically it means that you HAVE to use JAVA to validate the request. You can do the validation under the doPost (recommended) or under doGet

You want to match what the user inputted against what the correct values should be in the user array. Meaning that the password and username should match to the same user