svn: /phpdoc/en/trunk/reference/mongo/mongodb/ authenticate.xml
| From: | Kristina Chodorow | Date: | Wed, 24 Feb 2010 15:06:34 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/mongo/mongodb/ authenticate.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-6134@lists.php.net to get a copy of this message | ||
kristina Wed, 24 Feb 2010 15:06:34 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=295473
Log:
added authenticate return vals
Changed paths:
U phpdoc/en/trunk/reference/mongo/mongodb/authenticate.xml
Modified: phpdoc/en/trunk/reference/mongo/mongodb/authenticate.xml
===================================================================
--- phpdoc/en/trunk/reference/mongo/mongodb/authenticate.xml 2010-02-24 14:41:49 UTC (rev 295472)
+++ phpdoc/en/trunk/reference/mongo/mongodb/authenticate.xml 2010-02-24 15:06:34 UTC (rev 295473)
@@ -71,7 +71,20 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
- Returns database response.
+ Returns database response. If the login was successful, it will return
+ <programlisting role="php">
+<![CDATA[
+array("ok" => 1)
+]]>
+ </programlisting>
+ If something went wrong, it will return
+ <programlisting role="php">
+<![CDATA[
+array("ok" => 0, "errmsg" => "auth fails")
+]]>
+ </programlisting>
+ ("auth fails" could be another message, depending on database version and what
+ when wrong).
</para>
</refsect1>