dilfdo
4 years ago
26
11
Laravel

User hash password displaying when updating profile

Posted 4 years ago by dilfdo

i have used jquery bootstrap validator for my user update. so on bootstrap validator i have used 5-15 charchtor limitation. but when password convert to bycrypt that charchtor limit is exceeding. if a user update name without password it gives me error.

        password: {

                    validators: {
                        notEmpty: {
                            message: 'The Password field is required.'
                        },
                        stringLength: {
                            min: 5,
                            max: 15,
                            message: 'The Password must be more than 5 and less than 15 characters long'
                        }

                    }
                }

``
please advice 

Please sign in or create an account to participate in this conversation.