I have a document called login_data like-
{
"name": "abc",
"password": "abcd123",
"user_id": "abc123"
}
and I am creating a view for checking the user_id and password is correct or not which is cumming from the URL.
And the code of view like-
function (doc, meta) {
if(doc.password && doc.user_id){
emit("Status","Sucess");
}
}
and my URL is like :- http://localhost:8092/default/_design/dev_design/_view/login_credential?stale=false&inclusive_end=true&connection_timeout=60000&limit=10&skip=0&password=%22abcd123%22&user_id=%22abc123%22
So how to get the param values in the views.Is there any other way to do this ,if any please suggest. Thanks in advance.