On Monday, 27. January 2003 16:26, Kjetil Kjernsmo wrote: > I'm submitting a simple form, > <form method="POST" action="login.xsp"> > <input type="text" name="username"/> > <input type="text" name="passwd"/> > <input type="submit"/> > </form> > and from login.xsp, I have this snippet: > > <user:get-passwd> > <user:username><param:username/></user:username> > </user:get-passwd> > <auth:password-matches> > <auth:encrypted> > <user:get-passwd> > <user:username><param:username/></user:username> > </user:get-passwd> > </auth:encrypted> > <auth:clear><param:passwd/></auth:clear> > <auth:true> > <auth:login destination="/"> > <auth:access type="user"> > <param:username/> > </auth:access> > </auth:login> > <strong>Password is valid</strong> > </auth:true> > <auth:false><em>Password is invalid</em></auth:false> > </auth:password-matches> > > Obviously, the user-stuff is my own taglib. I use it to fetch stuff like > the encrypted password and other user data from the database. > It is pretty straightforward, and it seems to work well. The only thing > that can go wrong with it is that I don't disconnect (BTW, any > experience here with using Apache::DBI with AxKit?).
Apache::DBI works in a drop-in manner - just load and forget. Try to make your expression less complex for a start. It should make debugging easier. Try "my $foo = <user:...>...</user:...>;" and use $foo inside the <auth:password-matches/>. -- CU Joerg PGP Public Key at http://ich.bin.kein.hoschi.de/~trouble/public_key.asc PGP Key fingerprint = D34F 57C4 99D8 8F16 E16E 7779 CDDC 41A4 4C48 6F94 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
