OK, i found it... it expects 'credentials' for the submission name. Thanks, Emmanuel
On 11/14/05, Emmanuel Okyere <[EMAIL PROTECTED]> wrote: > OK Geert, > > Now I've setup an element called UserHome that points to a url > '/user/home' and another element called Registration that takes you to > '/register' and allows you to be added to the user database. > > Registration works perfectly... no exceptions, expected errors if you > ommit something etc etc. > > After a Registration, the user is exited to the UserHome element. This > also works as expected. > > Now, I have setup a 'User' element that extends > 'rife/authenticated/database.xml' as per the docs > > As the UserHome is working as expected, I decided to make it inherit > the User element. This seems to work, as UserHome now forces a Login > page as expected. > > At the the login page, I enter the user credentials (for 'foobar', I > just added through the registration page), but nothing happens; it > just returns to the Login page. > > I double-checked to make sure the user is indeed in the database, as > when I try to readd him, i get the following exception: > > [java] SEVERE: > com.uwyn.rife.authentication.credentialsmanagers.exceptions.DuplicateLoginException: > The login 'foobar' is already present. > > The following is how the element and subsite are defined: > > <group> > <globalcookie name="authid" /> > > <element id="User" extends="rife/authenticated/database.xml"> > <property name="role">user</property> > <property > name="datasource"><datasource>derby</datasource></property> > <property name="password_encryption">SHA</property> > <property name="template_name">login.Login</property> > <property name="authvar_type">cookie</property> > > <exit name="Register" /> > > <flowlink srcexit="Register" > destid="PublicSite.Register"/> > > <submission name="authenticate"> > <param name="login" /> > <param name="password" /> > <param name="remember" /> > </submission> > > <incookie name="rememberid" /> > <outcookie name="rememberid" /> > > <childtrigger name="authid" /> > </element> > > <subsite id="UserSite" file="user.xml" urlprefix="/user" > inherits="User" /> > </group> > > > Any Pointers? > > Thanks, > Emmanuel > > > On 11/11/05, Emmanuel Okyere <[EMAIL PROTECTED]> wrote: > > nah, don't sweat it... just think its wierd that when you drop the jar > > in the webinf/lib folder, it does find the classes it needs, and then > > just throws errors out of the blue... thx.. this setup works now.. > > plus i only need derby for testing anyways... thx > > > > Emmanuel > > > > On 11/11/05, Geert Bevin <[EMAIL PROTECTED]> wrote: > > > I suspect it's some weird classloading issue, but tracking this down > > > is extremely tedious since it could be something in Derby, the > > > servlet container, RIFE or another 3rd party lib. > > > > > > I doubt I ever have time to track it down. > > > > > > On 11-nov-05, at 16:35, Emmanuel Okyere wrote: > > > > btw, do you know why this happens? thx > > > > > > > > Emmanuel > > > > > > -- > > > Geert Bevin Uwyn bvba > > > "Use what you need" Avenue de Scailmont 34 > > > http://www.uwyn.com 7170 Manage, Belgium > > > gbevin[remove] at uwyn dot com Tel +32 64 84 80 03 > > > > > > PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 > > > Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net > > > > > > > > > _______________________________________________ > > > Rife-users mailing list > > > [email protected] > > > http://www.uwyn.com/mailman/listinfo/rife-users > > > > > > _______________________________________________ Rife-users mailing list [email protected] http://www.uwyn.com/mailman/listinfo/rife-users
