user activation while logged in ??

Discussion about advanced usage, web server stuff, proxies, etc.

user activation while logged in ??

Postby hayden » Mon May 10, 2010 1:19 am

hi, im just doing some testing of the user registration/activation process , and i got to the bit where the admin is sent out the notification of new member registration, with the link in it the activate the new users account.

problem was, the activation link would work until i was logged out. otherwise it would just redirect me to the homepage.

so i found the code i believe is responsible for this : user gadget HTML.PHP line 728 function ActivateUser()

Code: Select all
        if ($GLOBALS['app']->Session->Logged()) {
            Jaws_Header::Location('');
        }


is there any reason why the admin cant be logged in to do activation functions ?? why is this here ? can i disable it ?

thanks, jaws rocks.
hayden
 
Posts: 96
Joined: Wed Oct 22, 2008 12:17 pm
Location: Sydney, Australia

Re: user activation while logged in ??

Postby afz » Mon May 10, 2010 2:37 am

hi,
replace it with this:
Code: Select all
        if ($GLOBALS['app']->Session->Logged() && !$GLOBALS['app']->Session->IsSuperAdmin()) {
            Jaws_Header::Location('');
        }
afz
 
Posts: 694
Joined: Sat Apr 12, 2008 1:46 am

Re: user activation while logged in ??

Postby hayden » Mon May 10, 2010 3:22 am

thanks
hayden
 
Posts: 96
Joined: Wed Oct 22, 2008 12:17 pm
Location: Sydney, Australia


Return to Advanced topics

Who is online

Users browsing this forum: accurbLusa and 1 guest

cron