modules/api/v2/models/ResetPassword.php
/**
     * Returns the validation rules for attributes.
     * @return array
     */
Returns the validation rules for attributes.
@return array
Returns the validation rules for attributes . @return array
public function rules()
    {
        return [
            [['tmp_password', 'password', 'confirm_password'], 'required'],
            ['tmp_password', 'validateTmpPassword'],
            [['password', 'confirm_password'], 'string','min'=> 6],
            ['confirm_password', 'compare', 'compareAttribute' => 'password', 'message' => "Confirm Password don't match"]
        ];
    }
public function rules ( ) { return [ [ [ 'tmp_password' , 'password' , 'confirm_password' ] , 'required' ] , [ 'tmp_password' , 'validateTmpPassword' ] , [ [ 'password' , 'confirm_password' ] , 'string' , 'min' => 6 ] , [ 'confirm_password' , 'compare' , 'compareAttribute' => 'password' , 'message' => " Confirm Password don't match " ] ] ; }
Returns the validation rules for attributes.
Returns the validation rules for attributes .