couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ashraf Janan <ashrafja...@yahoo.com>
Subject Re: username,password
Date Tue, 08 Oct 2013 10:50:02 GMT
Thank you so much Xp,
I tried also:
function(doc) {
if(doc.type === "student")
  emit([doc.name,doc.password], doc);
}

http://URL/DBname/_design/authentication/_view/name of view?key=["username","password"]


and its worked.

But when i tried to do the following :
function(doc) {
if(doc.type === "student")
  emit({password= doc.password, name = doc.name}, doc);
}

In this case i don't know , how can write a query with Url .
I tried the following b it its not worked:
http://URL/DBname/_design/authentication/_view/name of view?name = key.name&password=key.password


How can i fix that ? please

Best regards
Ashraf
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message