I have a question regarding authentication using Catalyst::Authentication::Store::DBIx::Class, that I&#39;m sure someone here can answer.  Please excuse me, as I am a complete catalyst and DBIx::Class n00b.<br><br>Catalyst::Authentication::Store::DBIx::Class uses the following example:<br>
<br><pre>    if ($c-&gt;authenticate({  <br>                          screen_name =&gt; $c-&gt;req-&gt;params-&gt;{&#39;username&#39;},<br>                          password =&gt; $c-&gt;req-&gt;params-&gt;{&#39;password&#39;},<br>
                          status =&gt; [ &#39;registered&#39;, &#39;active&#39;, &#39;loggedin&#39;]<br>                         })) {<br><br>        # ... authenticated user code here<br>    }</pre><br>In this example, if the entered username and password match AND the status column matches one of the specified values: &#39;registered&#39;, &#39;active&#39;, or &#39;loggedin&#39;, then the user is authenticated.<br>
<br>I prefer to have a list of valid statuses, and a more normalized 
database.  What if, in the database, we have a table of statuses, such as:<br><br>id | status<br>1  | registered<br>2  | active<br>3  | loggedin<br>...<br><br>...and we store the status id in our user model...how would I handle the authenticate method call?<br>
<br>Thanks,<br>Mike Peck<br><br>