Return password

This commit is contained in:
Alex Bilbie 2014-08-04 15:26:26 +01:00
parent b3da61822e
commit 1a4cc3b750

View File

@ -8,7 +8,7 @@ class Users
{ {
public function get($username = null) public function get($username = null)
{ {
$query = Capsule::table('users')->select(['username', 'name', 'email', 'photo']); $query = Capsule::table('users')->select(['username', 'password', 'name', 'email', 'photo']);
if ($username !== null) { if ($username !== null) {
$query->where('username', '=', $username); $query->where('username', '=', $username);