• Welcome to KonaKart Community Forum. Please login or sign up.
 

Avoid login from some users

Started by David, January 29, 2008, 09:33:01 am

Previous topic - Next topic

David

Hi

I want to avoid login from some users (like those who don't pay). I do this checking a custom field. how can I do this?? I supose I have to modify LoginSubmitAction.java, but I'm a bit lost

thanks in advance

David

julie

Hi,

You can disable a user from the Admin App. However this doesn't stop him / her from creating a new account.

Julie

David

Hi,

thanks for your answer, but I'd prefer don't do it from the AdminApp. I`m doing this checking an external aplication so I have to allow the user to login, check him and then do a logout if he has no privileges to login.

I'm doing this in the LoginSubmitAction.java, but I don't know how can I disconnect the user from konakart ¿?

Again, thanks for your help...

David

David

ok, I found it  ;D

In LoginSubmitAction.java the user seems to be connected, here I can check him and then I disconect his account with: kkAppEng.getCustomerMgr().logout();