Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
Fix issue #473
Browse files Browse the repository at this point in the history
  • Loading branch information
Panagis Tselentis committed Oct 17, 2019
1 parent a55735f commit e8740a9
Show file tree
Hide file tree
Showing 2 changed files with 219 additions and 212 deletions.
7 changes: 7 additions & 0 deletions api/controllers/AuthController.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ var AuthController = {
}]
}

if( data.password.length < 7) {
invalidAttributes.password = [{
rule: 'password',
message: 'The password must be at least 7 characters long'
}]
}

if(!data.password_confirmation) {
invalidAttributes.password_confirmation = [{
rule: 'required',
Expand Down
Loading

0 comments on commit e8740a9

Please sign in to comment.