I have a user table where there are two fields email and password
$validator = Validator::make($request->all(),[
'email' => ['required', 'string', 'email', 'max:255', 'unique:users'],
'password' => ['required', 'string', 'min:5', 'confirmed','min:8'],
'password_confirmation' => ['min:8']
]);
I'm using unique field to check whether email is unique but i want to show message user already exist only if email already exist and password field not null, because i have a case if user is login through social media account then password is not saved and is null, so when user is trying to register through normal account then i want to update user fields.
Any Suggestion Thanks
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3A4maHh
via IFTTT
Aucun commentaire:
Enregistrer un commentaire