Fix registration bug.

This commit is contained in:
James Cole
2015-03-25 22:30:36 +01:00
parent ed3d40a4e0
commit d624efa799

View File

@@ -66,7 +66,7 @@ class AuthController extends Controller
$data =$request->all(); $data =$request->all();
$data['password'] = bcrypt($data['password']); $data['password'] = bcrypt($data['password']);
$this->auth->login($this->registrar->create($request->all())); $this->auth->login($this->registrar->create($data));
// get the email address // get the email address
$email = $this->auth->user()->email; $email = $this->auth->user()->email;