Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Register #118

Closed
agungsugiarto opened this issue Sep 29, 2019 · 2 comments
Closed

Error Register #118

agungsugiarto opened this issue Sep 29, 2019 · 2 comments

Comments

@agungsugiarto
Copy link
Contributor

Codeigniter Version 4.0.0-rc.2.1
Myth\Auth Version dev-develop

ErrorException
Undefined variable: errors

SYSTEMPATH/Validation\Validation.php at line 651

/span>         // If we already have errors, we'll use those.
/span>         // If we don't, check the session to see if any were
/span>         // passed along from a redirect_with_input request.
/span>         if (empty($this->errors) && ! is_cli())
/span>         {
/span>             if (isset($_SESSION) && session('_ci_validation_errors'))
/span>             {
/span>                 $this->errors = unserialize($errors);
/span>             }
/span>         }
/span> 
/span>         return $this->errors ?? [];
/span>     }
/span> 
/span>     //--------------------------------------------------------------------

APPPATH/Controllers\AuthController.php : 156 — CodeIgniter\Model->errors ()

/span>             'email'            => 'required|valid_email|is_unique[users.email]',
/span>             'password'        => 'required|strong_password',
/span>             'pass_confirm'    => 'required|matches[password]',
/span>         ]);
/span> 
/span>         if (! $this->validate($rules))
/span>         {
/span>             return redirect()->back()->withInput()->with('errors', $users->errors());
/span>         }
/span> 
/span>         // Save the user
/span>         $user = new User($this->request->getPost());
/span> 
/span>         if (! $users->save($user))
/span>         {
@michalsn
Copy link
Contributor

This is a CodeIgniter issue codeigniter4/CodeIgniter4#2284

@agungsugiarto
Copy link
Contributor Author

This is a CodeIgniter issue codeigniter4/CodeIgniter4#2284

Ok, close issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants