
Originally Posted by
ossi
i have to make ma master work - i have already done it but now i'm doing authorization & authentication users with mysql and this is problem
when i change web.xml and appcontext.xml to use with acegi sec. sys. and also change my base the information on web page always stayed at 'user is disabled' it's big problem why i'm beggining in java &spring
Could you give me comprehensive answer how should i do it.
I made in the base new tables : users(username (str), password(str), enabled(bool)) ; authorities(username (str), authority(str), and add new user usname:jur pass:jur enabled:T ; authorities usname:jur auth:ROLE_SUPERVISOR and....
could any one help me plisss
maybe you should use 1 instead of T for your enabled column
because when you use BOOL type, value 0 "means" false, all non-zero values - TRUE
in my case ,i use such script to populate mysql db
Code:
INSERT INTO USERS VALUES 'marissa','a564de63c2d0da68cf47586ee05984d7',1);
INSERT INTO USERS VALUES('peter','22b5c9accc6e1ba628cedc63a72d57f8',0);
it works fine.