Changeset 12598

Show
Ignore:
Timestamp:
09/30/07 06:09:49 (1 year ago)
Author:
w_i
Message:

we shouldn't need sudo privileges when sending mail.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/net.nehmer.account/handler/register.php

    r12594 r12598  
    10741074        $this->_invoke_account_activation_callback(); 
    10751075         
    1076         // $_MIDCOM->auth->drop_sudo(); 
    1077          
    1078         $this->_send_welcome_mail(); 
    1079  
    1080         // $_MIDCOM->auth->request_sudo('net.nehmer.account'); 
     1076        if ($auto_login_sitegroup) 
     1077        { 
     1078            $_MIDCOM->auth->drop_sudo(); 
     1079 
     1080            $this->_send_welcome_mail(); 
     1081 
     1082            $_MIDCOM->auth->request_sudo('net.nehmer.account');             
     1083        } 
     1084        else 
     1085        { 
     1086            $this->_send_welcome_mail(); 
     1087        } 
    10811088 
    10821089        // Check for a custom return_url