Skip to content

Commit

Permalink
Login field will now get a uniqueness validator
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed May 31, 2014
1 parent fa81057 commit 758d01f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Console/Command/Task/ModelTask.php
Expand Up @@ -454,7 +454,7 @@ public function fieldValidation($fieldName, array $metaData, $primaryKey) {
]
];

if (in_array($fieldName, ['email', 'username'])) {
if (in_array($fieldName, ['email', 'username', 'login'])) {
$validation['unique'] = [
'rule' => 'validateUnique',
'provider' => 'table'
Expand Down

0 comments on commit 758d01f

Please sign in to comment.