thyseus / yii-user-management

a user management module collection for the yii framework
185 stars 122 forks source link

no switch to disable mail activation in YumRegistrationController::actionRegistration() #198

Open abos5 opened 10 years ago

abos5 commented 10 years ago

since we are able to set field email as not required, then there should be a switch to turn off activation via email.

Or maybe it's something that I didn't notice.

// Send the Email to the given user object. 
  // $user->profile->email needs to be set.
  public function sendRegistrationEmail($user) {
    if (!isset($user->profile->email)) 
      throw new CException(Yum::t('Email is not set when trying to send Registration Email'));
    ...
  }