Last active
December 25, 2015 22:39
-
-
Save JoaoVagner/7050942 to your computer and use it in GitHub Desktop.
Validation match_field comparasion password
This file contains hidden or 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
<?php public function registerStepOne($params) { | |
$userCollection = \Mongaconnector::collection($this->collection); | |
$registerValidation = \Validation::forge('registerStepOne'); | |
$registerValidation->add_callable(new \validationRegister()); | |
$registerValidation->add_field('username', 'Your username', 'required'); | |
$registerValidation->add_field('password', 'Your password', 'required|min_length[3]|max_length[10]'); | |
$registerValidation->add_field('confirm_password', 'Confirm Yor Password', 'match_field[password]'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment