How to check username and password??
-
[{"UserId":"1","Usercode":"ADMIN","Password":"123"},
{"UserId":"2","Usercode":"Ravi","Password":"ravi"}]I have one question if I want to login with both user code and password which logic I should apply.
-
[{"UserId":"1","Usercode":"ADMIN","Password":"123"},
{"UserId":"2","Usercode":"Ravi","Password":"ravi"}]I have one question if I want to login with both user code and password which logic I should apply.
-
[{"UserId":"1","Usercode":"ADMIN","Password":"123"},
{"UserId":"2","Usercode":"Ravi","Password":"ravi"}]I have one question if I want to login with both user code and password which logic I should apply.
For a start UserID will not be available to the user so should be eliminated from that data set. First check the user code exists, then check that the HASHED password matches the HASHED password stored in your database for that user code. There are a number of articles on CP showing how to do password security properly.
Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP