I'm sure. Note that it returns the correct userid, just not the
password. I'm using the 20070207 snapshot of 1.6. I'll try a newer
build.
thanks
Henk
On 09 Apr 2007, at 18:23, Geert Bevin wrote:
Stupid question, but are you sure that you're using the correct
datasource in the code below?
On 09 Apr 2007, at 09:00, Henk wrote:
I can see the password in the tables. It is even unencrypted.
Also authenticating works. Strange.
Henk
On 06 Apr 2007, at 09:43, Geert Bevin wrote:
When I try this code, it just works. Are you sure you actually
stored a password for the users in the database? Can you check
with a regular database client to see what's actually in the tables?
On 28 Mar 2007, at 13:23, Henk wrote:
I'm probably stupid, but I tried this :
RoleUserAttributes attr = users.getAttributes("admin");
System.out.println("id: " + attr.getUserId() + " pass: " +
attr.getPassword());
it gives me "id: 4 pass: null"
thanks
Henk
On 28 Mar 2007, at 21:23, Geert Bevin wrote:
Hi Henk,
The userid is not the same as the login. ;-)
Hope this helps,
Geert
On 28 Mar 2007, at 19:43, Henk wrote:
Hi,
I'm making a frontend for the users management of my webapp.
I try to retrieve the user's password this way :
users = DatabaseUsersFactory.getInstance(datasource);
if (getInputLong("userid") > 0) {
user_id = getInputLong("userid");
System.out.println("pass: " + users.getAttributes
(users.getLogin(user_id)).getPassword());
}
This always returns "pass: null". Setting the password
however works fine.
Is there another way (apart from using my own sql statement) ?
Thanks
Henk
Henk
[EMAIL PROTECTED]
_______________________________________________
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users
--
Geert Bevin
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com
_______________________________________________
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users
Henk
[EMAIL PROTECTED]
_______________________________________________
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users
--
Geert Bevin
Terracotta - http://www.terracotta.org
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com
_______________________________________________
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users
Henk
[EMAIL PROTECTED]
_______________________________________________
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users
--
Geert Bevin
Terracotta - http://www.terracotta.org
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com
_______________________________________________
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users
Henk
[EMAIL PROTECTED]
_______________________________________________
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users