I have success use another user table instead of turbine default user table.
What I do is as this:
I make a class called VUser which inherated from BaseUser;
In the VUser you have to override: validate, retrieveFromStorage(...)
saveToStorage() functions.
In retrieveFromStorage function you should call setUserName(), setPassword() to put
the value into memory.
Then you will be able to get validated.
After you have this customed User class, you should set it in Properties file:
sevices.TurbineSecurityService.user.class=foo.VUser
However I am using tdk 1.1a9, and not sure I am using the right way to do the work.
Regards
fanyun
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Leandro Rodrigo Saad Cruz
Sent: Saturday, December 23, 2000 3:14 AM
To: Turbine
Subject: Login a user..
while trying to login a user I'm getting and exception :
(TurbineSecurityException
e.getMessage equals to Unknown user: username )
at
User user = TurbineSecurity.getAuthenticatedUser( username, password );
as far as I'm concerned, I'm actually calling DBUserManager which
retrieves my user based on it's username.
Ok , I added my user to TURBINE_USER table but I think I have to add him
to another table too... or ??
Any help ??
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]
N�.n�+�������'�+-�x��d�{.n�+�������~X��
+�)�v�,r��y�܆m���� ��V�r�y�&�۫n)��Ib��(�H��� ��&���nW��:'�x��