">/</span><span class="tag">&gt;</span></div></pre><p>This will create a new user with username <code>john</code>. If that username is taken, Moya will raise a <code>moya.auth.duplicate-user</code> exception.</p>
<p>Note that the password will be hashed automatically.</p>
<h2><a name="logging-in-a-user"></a><a href="#logging-in-a-user">Logging In a User<span class="anchor"> &#182;</span></a></h2><p>You can login a user for the current session with <a class="tag" href="tags/httpmoyaprojectcomauth/tag_login.h