-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: added RegistrationModule::registration_as_email
- Loading branch information
Showing
5 changed files
with
332 additions
and
320 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,41 +6,46 @@ class RegistrationModule extends CWebModule { | |
public $layout = 'user.views.layouts.yum'; | ||
public $enableRegistration = true; | ||
public $enableRecovery = true; | ||
|
||
public $recoveryUrl = array('//registration/registration/recovery'); | ||
public $activationUrl = array('//registration/registration/activation'); | ||
public $registrationUrl = array('//registration/registration/registration'); | ||
|
||
public $activationSuccessView = '/registration/activation_success'; | ||
public $activationFailureView = '/registration/activation_failure'; | ||
|
||
// Whether to confirm the activation of an user by email | ||
public $enableActivationConfirmation = true; | ||
|
||
public $registrationEmail='[email protected]'; | ||
public $recoveryEmail='[email protected]'; | ||
|
||
|
||
// If set to true, no username is needed on registration. | ||
// The user only needs to give his email address. | ||
// The 'username' is set to given email automatically. | ||
public $registration_by_email = false; | ||
|
||
// Which roles should be assigned automatically to a fresh registered user? | ||
// Use role id, for example array(1,4,5) | ||
public $defaultRoles = array(); | ||
public $defaultHybridAuthRoles = array(); | ||
|
||
public $registrationView = '/registration/registration'; | ||
public $changePasswordView = 'user.views.user.changepassword'; | ||
public $recoverPasswordView = 'registration.views.registration.recovery'; | ||
|
||
/** | ||
* Whether to use captcha in registration process | ||
* @var boolean | ||
*/ | ||
public $enableCaptcha = true; | ||
public $loginAfterSuccessfulRecovery = false; | ||
public $loginAfterSuccessfulActivation = false; | ||
public $controllerMap=array( | ||
'registration'=>array( | ||
'class'=>'registration.controllers.YumRegistrationController'), | ||
); | ||
public $enableCaptcha = true; | ||
|
||
public $loginAfterSuccessfulRecovery = false; | ||
public $loginAfterSuccessfulActivation = false; | ||
|
||
public $controllerMap=array( | ||
'registration'=>array( | ||
'class'=>'registration.controllers.YumRegistrationController'), | ||
); | ||
|
||
} |
Oops, something went wrong.