KonaKart Community Forum

Installation / Configuration => Programming of KonaKart => Topic started by: David on January 29, 2008, 09:33:01 am

Title: Avoid login from some users
Post by: David on January 29, 2008, 09:33:01 am
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
Title: Re: Avoid login from some users
Post by: julie on January 29, 2008, 09:38:18 am
Hi,

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

Julie
Title: Re: Avoid login from some users
Post by: David on January 29, 2008, 04:55:44 pm
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
Title: Re: Avoid login from some users
Post by: David on January 31, 2008, 08:52:58 am
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();