aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/Http
diff options
context:
space:
mode:
Diffstat (limited to 'app/Http')
-rw-r--r--app/Http/Controllers/Auth/RegisterController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Http/Controllers/Auth/RegisterController.php b/app/Http/Controllers/Auth/RegisterController.php
index a051071..14f1ef3 100644
--- a/app/Http/Controllers/Auth/RegisterController.php
+++ b/app/Http/Controllers/Auth/RegisterController.php
@@ -64,8 +64,8 @@ class RegisterController extends Controller
protected function create(array $data)
{
$hashedPassword = Hash::make($data['password']);
- $previousHash = User::select('hash')->orderBy('id','desc')->first();
- $summedHash = bcrypt($previousHash . $data['name'] . $data['email'] . 'password' . $hashedPassword);
+ $previousHash = User::select('hash')->orderBy('id','desc')->first()->hash;
+ $summedHash = Hash::make($previousHash . $data['name'] . $data['email'] . 'password' . $hashedPassword); // Hash::check to verify
return User::create([
'name' => $data['name'],