Skip to content

Commit

Permalink
Merge branch '2.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
crynobone committed Jul 19, 2014
2 parents ee3b235 + f482243 commit 67bcbc7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "orchestra/foundation",
"description": "Orchestra Platform 2 Foundation Component",
"homepage": "http://orchestraplatform.com/docs/latest/",
"keywords": ["orchestra-platform", "orchestral", "laravel"],
"license": "MIT",
"keywords": ["orchestra-platform", "orchestral", "laravel", "administrator", "admin", "user-management"],
"authors": [
{
"name": "Mior Muhammad Zaki",
Expand Down
12 changes: 10 additions & 2 deletions docs/changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ title: Foundation Change Log

## Version 2.2 {#v2-2}

### v2.2.3@dev {#v2.2.3}
### v2.2.4@dev {#v2-2-4}

* Deprecate `orchestra.validate: user.registration` event and replace it with `orchestra.validate: user.account.register` event.

### v2.2.3 {#v2-2-3}

* Fixed event names on registration.
* Add new `orchestra.validate: user.registration` event.
Expand Down Expand Up @@ -41,7 +45,11 @@ title: Foundation Change Log

## Version 2.1 {#v2-1}

### v2.1.10@dev {#v2-1-10}
### v2.1.11@dev {#v2-1-11}

* Deprecate `orchestra.validate: user.registration` event and replace it with `orchestra.validate: user.account.register` event.

### v2.1.10 {#v2-1-10}

* Fixed event names on registration.
* Add new `orchestra.validate: user.registration` event.
Expand Down
1 change: 1 addition & 0 deletions src/Foundation/Validation/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class Account extends Validator
protected function onRegister()
{
$this->rules['email'] = array('required', 'email', 'unique:users,email');
$this->events[] = 'orchestra.validate: user.account.register';
$this->events[] = 'orchestra.validate: user.registration';
}

Expand Down

0 comments on commit 67bcbc7

Please sign in to comment.