Geetings alll
I have modified the project management template to suite my needs and created a group security using the provided security modules, but am having a problem with the
“access_logged” page, I have modified the OnValidate to redirect depending on group… which isnt working… it doesnt redirect and am not sure if it logs the user out.
As its something I would do on just about every project its important for me to get this one right and working, so any help would be greatly appreciated!
I initially copied the login form and created another 2, ie one for client, one for member and one for admin, but I cant seem to find the link or redirect which tells the login page to open the access_logged page if user still logged in, otherwise I would simply create 2 more versions of that also and change the redirect for that… maybe that would be a better option if somebody knows where I can edit that.
OnValidate code:
sc_log_add(‘login’, {lang_login_ok});
sc_logged_out([user]);
sc_logged_in([user]);
sc_user_logout(‘logged_user’, ‘logout’, ‘login_admin’);
// Redirection
if ([glo_usr] == ‘Administrator’)
{
sc_redir(‘menu_admin’);
}
elseif ([glo_usr] == ‘Client’)
{
sc_redir(‘menu_client’);
}
elseif ([glo_usr] == ‘Member’)
{
sc_redir(‘menu_member’);
}