Skip to content

Commit

Permalink
Feature: added RegistrationModule::registration_as_email
Browse files Browse the repository at this point in the history
  • Loading branch information
thyseus committed Mar 22, 2014
1 parent bfe4e8c commit 2bd3a1b
Show file tree
Hide file tree
Showing 5 changed files with 332 additions and 320 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ folder:
```
$ mv user/* .
(optional: remove demo application)
$ rm index.php composer.json
$ rm -rf index.php composer.json hybridauth.php controllers views
```

$ [youreditor] protected/config/main.php
Expand Down
39 changes: 22 additions & 17 deletions modules/registration/RegistrationModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
);

}
Loading

0 comments on commit 2bd3a1b

Please sign in to comment.