Don't save passwords in plaintext

This commit is contained in:
manavo 2014-11-24 17:21:36 +00:00
parent ad115bc915
commit 66ddd7bd04

View File

@ -26,7 +26,7 @@
$user = new User;
$user->username = $userDetails['name'];
$user->email = $userDetails['email'];
$user->password = $userDetails['password'];
$user->password = Hash::make($userDetails['password']);
$user->save();
Auth::login($user);