<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-15"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Should...<br>
<br>
user_class: DB::grips_user<br>
<br>
...be....<br>
<br>
user_model: DB::grips_user<br>
<br>
???<br>
<br>
Renee Bäcker wrote:
<blockquote cite="mid:49EF0FEC.9090307@renee-baecker.de" type="cite">
  <pre wrap="">Tomas Doran schrieb:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Nothing appears wrong with that code.

However you haven't shown us your authentication config, so we don't
know what you're authenticating with / against.

If you could also include the debug log of the hit which calls
$c-&gt;authenticate and then redirects, and the hit after that it would be
helpful.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Log output:

[info] *** Request 1 (0.167/s) [10155] [Wed Apr 22 12:56:43 2009] ***
[debug] Body Parameters are:
.-------------------------------------+--------------------------------------.
| Parameter                           | Value
    |
+-------------------------------------+--------------------------------------+
| password                            | secret
    |
| username                            | reneeb
    |
'-------------------------------------+--------------------------------------'
[debug] "POST" request for "root/login" from "127.0.0.1"
[debug] Path is "root/login"
[debug] login successful:
[debug] Finding template to render ...
[debug] Trying to render template
"/dir/templates/start.tmpl" ...
[debug] Redirecting to <a class="moz-txt-link-rfc2396E" href="http://localhost:3000/root/start">"http://localhost:3000/root/start"</a>
[info] Request took 0.167890s (5.956/s)
.------------------------------------------------------------+-----------.
| Action                                                     | Time
|
+------------------------------------------------------------+-----------+
| /root/login                                                | 0.114807s
|
| /end                                                       | 0.036004s
|
|  -&gt; GriPS::View::TT-&gt;process                               | 0.033808s
|
'------------------------------------------------------------+-----------'

[info] *** Request 2 (0.333/s) [10155] [Wed Apr 22 12:56:43 2009] ***
[debug] "GET" request for "root/start" from "127.0.0.1"
[debug] Path is "root/start"
[debug] Finding template to render ...
[debug] Trying to render template
"/dir/templates/start.tmpl" ...
[error] Caught exception in GriPS::Controller::Root-&gt;start "Can't call
method "user_id" on an undefined value at
/dir/../lib/GriPS/Controller/Root.pm
line 52."
[info] Request took 0.110155s (9.078/s)
.------------------------------------------------------------+-----------.
| Action                                                     | Time
|
+------------------------------------------------------------+-----------+
| /root/start                                                | 0.002196s
|
| /end                                                       | 0.006856s
|
|  -&gt; GriPS::View::TT-&gt;process                               | 0.004974s
|
'------------------------------------------------------------+-----------'


and this is the configuration:

authentication:
  default_realm: default
  realms:
    default:
      credential:
        class: Password
        password_field: passwd
        password_type: clear
      store:
        class: DBIx::Class
        user_class: DB::grips_user
        role_relation: rolenames
        role_field: role

  </pre>
  <blockquote type="cite">
    <pre wrap="">Cheers
t0m
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Thanks!

- Renee

  </pre>
  <blockquote type="cite">
    <pre wrap="">_______________________________________________
List: <a class="moz-txt-link-abbreviated" href="mailto:Catalyst@lists.scsys.co.uk">Catalyst@lists.scsys.co.uk</a>
Listinfo: <a class="moz-txt-link-freetext" href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a>
Searchable archive: <a class="moz-txt-link-freetext" href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a>
Dev site: <a class="moz-txt-link-freetext" href="http://dev.catalyst.perl.org/">http://dev.catalyst.perl.org/</a>


    </pre>
  </blockquote>
  <pre wrap=""><!---->

  </pre>
</blockquote>
</body>
</html>