You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Log::info('Created user "'.$user->username.'" <'.$user->email.'>');
}
this don't work too, the output:
array (
'username' => 'willow23',
'email' => '[email protected]',
'password' => 'dddddd',
'password_confirmation' => 'dddddd',
'confirmation_code' => 'a78c3a854c3e5a27f804c06701465039',
)
{"username":["The username field is required."],"email":["The email field is required."],"password":["The password field is required."]}
Why so many bugs???!
The text was updated successfully, but these errors were encountered:
password: $2y$10$joqdF9xuW8AnupOw9Eb48.t47782UwR3O34y1oPYMYCRQ1rVBcKWO
password_confirmation: foo_bar_1234
{"password_confirmation":["The passwords did not match."]}
if ($user->password === $user->password_confirmation) {
hashed and unhashed
$user->getOriginal('password') here,there is no getOriginal in ConfideUser trait.
$user=new User;
$passwrod='dddddd';
$data=array(
"username"=>$this->faker->userName,
"email"=>$this->faker->email,
"password"=>$passwrod,
'password_confirmation'=>$passwrod,
'confirmation_code'=>md5(uniqid(mt_rand(),true))
);
//var_export($data);
$ret=$user->create($data);
//echo $ret;
if(!$ret){
echo $user->errors();
Log::info('Unable to create user '.$user->username,(array)$user->errors());
}else{
this don't work too, the output:
array (
'username' => 'willow23',
'email' => '[email protected]',
'password' => 'dddddd',
'password_confirmation' => 'dddddd',
'confirmation_code' => 'a78c3a854c3e5a27f804c06701465039',
)
{"username":["The username field is required."],"email":["The email field is required."],"password":["The password field is required."]}
Why so many bugs???!
The text was updated successfully, but these errors were encountered: