J
|
Jane 10/26/2006 |
John, Function BeforeLogin(username, password) if username="John from Club2" then SESSION("GroupID") = "club2" end if BeforeLogin = True End Function |
![]() |
lefty author 10/26/2006 |
John, I'm not sure that I understand you properly. If you want to set up user group permissions each user should be in one of the user group and you should edit user group field for each user or set up one default user group for all registered users. Also you can define user group of each user in the BeforeLogin event. But in this case you need to edit event code every time new user registers. Here is a sample:
|