<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to API:Auth</title><link>https://sourceforge.net/p/craftexcms/wiki/API%253AAuth/</link><description>Recent changes to API:Auth</description><atom:link href="https://sourceforge.net/p/craftexcms/wiki/API:Auth/feed" rel="self"/><language>en</language><lastBuildDate>Tue, 30 Dec 2014 13:01:53 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/craftexcms/wiki/API:Auth/feed" rel="self" type="application/rss+xml"/><item><title>API:Auth modified by AntifreeZZe</title><link>https://sourceforge.net/p/craftexcms/wiki/API%253AAuth/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v5
+++ v6
@@ -1,5 +1,5 @@
 **Auth($login,$pass)** is the main authorizing function in the CCMS.
-**Returns type** : [API:QueryResult]
+**Returns type** : [QueryResult](http://sourceforge.net/p/craftexcms/wiki/API:QueryResult)

 Usage
 ==
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">AntifreeZZe</dc:creator><pubDate>Tue, 30 Dec 2014 13:01:53 -0000</pubDate><guid>https://sourceforge.net6635dab94740105dd659426605b62ef2b2329119</guid></item><item><title>API:Auth modified by AntifreeZZe</title><link>https://sourceforge.net/p/craftexcms/wiki/API%253AAuth/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -14,6 +14,7 @@
 Note
 ==
 Result of the function can have following values of $result :
+
 * "MySQL Error" if there is an error in connection or in MySQL Query
 * "Can't find user" if there is no such user
 * "Bad password" if the $pass is wrong
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">AntifreeZZe</dc:creator><pubDate>Tue, 30 Dec 2014 12:46:23 -0000</pubDate><guid>https://sourceforge.net1c5bfc0d22fca7fdc5f12da248e53ae4860175ee</guid></item><item><title>API:Auth modified by AntifreeZZe</title><link>https://sourceforge.net/p/craftexcms/wiki/API%253AAuth/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">AntifreeZZe</dc:creator><pubDate>Tue, 30 Dec 2014 12:46:00 -0000</pubDate><guid>https://sourceforge.net8f9dfd1844657fa157ac41b83b93a4af5784aa8d</guid></item><item><title>API:Auth modified by AntifreeZZe</title><link>https://sourceforge.net/p/craftexcms/wiki/API%253AAuth/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -10,7 +10,7 @@
 }
 echo $result-&amp;gt;$result . "&lt;br /&gt;";
 echo $result-&amp;gt;$u-&amp;gt;$name;
-
+~~~~~~
 Note
 ==
 Result of the function can have following values of $result :
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">AntifreeZZe</dc:creator><pubDate>Tue, 30 Dec 2014 12:43:53 -0000</pubDate><guid>https://sourceforge.net4130f3542556888daedf6e136b2a3b63be7e7958</guid></item><item><title>API:Auth modified by AntifreeZZe</title><link>https://sourceforge.net/p/craftexcms/wiki/API%253AAuth/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -11,4 +11,9 @@
 echo $result-&amp;gt;$result . "&lt;br /&gt;";
 echo $result-&amp;gt;$u-&amp;gt;$name;

-echo
+Note
+==
+Result of the function can have following values of $result :
+* "MySQL Error" if there is an error in connection or in MySQL Query
+* "Can't find user" if there is no such user
+* "Bad password" if the $pass is wrong
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">AntifreeZZe</dc:creator><pubDate>Tue, 30 Dec 2014 12:42:34 -0000</pubDate><guid>https://sourceforge.net122c27a2fbf0aa0df70c9e54f8713851de86e364</guid></item><item><title>API:Auth modified by AntifreeZZe</title><link>https://sourceforge.net/p/craftexcms/wiki/API%253AAuth/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;strong&gt;Auth($login,$pass)&lt;/strong&gt; is the main authorizing function in the CCMS.&lt;br /&gt;
&lt;strong&gt;Returns type&lt;/strong&gt; : &lt;span&gt;[API:QueryResult]&lt;/span&gt;&lt;/p&gt;
&lt;h1 id="usage"&gt;Usage&lt;/h1&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="nv"&gt;$result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Auth&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"admin"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="s2"&gt;"admin"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$result&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nv"&gt;$result&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"OK"&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;
    &lt;span class="c1"&gt;//Actions with user&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nx"&gt;echo&lt;/span&gt; &lt;span class="nv"&gt;$result&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nv"&gt;$result&lt;/span&gt; &lt;span class="nx"&gt;.&lt;/span&gt; &lt;span class="s2"&gt;"&amp;lt;br&amp;gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nx"&gt;echo&lt;/span&gt; &lt;span class="nv"&gt;$result&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nv"&gt;$u&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nv"&gt;$name&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nx"&gt;echo&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">AntifreeZZe</dc:creator><pubDate>Tue, 30 Dec 2014 12:36:41 -0000</pubDate><guid>https://sourceforge.net477ab1aee7991d5c35ea868502a8def647ad09b6</guid></item></channel></rss>