I can't find the position and what to change on the register field there is:
Username First Name Last Name Password Password confirm
Right now the username accepts only lowercase but I want to accept both. Uppercase and lowercase. I also don't want spaces to appear.
I searched in: RegisterController.php and some js but couldn't fint it. What to change where (Laravel newbie here).
Thanks!
protected function validator(array $data)
{
return Validator::make($data, [
'username' => 'required|max:255|unique:users|alpha_dash',
'email' => 'required|email|max:255|unique:users',
'password' => 'required|min:6|confirmed',
'password_confirmation' => 'required|min:6',
'accepted' => 'required|accepted
]);
}
In RegisterController look for function name validator
like above and remove the validation.
Hope this helps.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.