diff options
Diffstat (limited to 'app/Http/Controllers')
-rw-r--r-- | app/Http/Controllers/Auth/RegisterController.php | 1 | ||||
-rw-r--r-- | app/Http/Controllers/PublicKeyController.php | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/app/Http/Controllers/Auth/RegisterController.php b/app/Http/Controllers/Auth/RegisterController.php index 14f1ef3..f922f9f 100644 --- a/app/Http/Controllers/Auth/RegisterController.php +++ b/app/Http/Controllers/Auth/RegisterController.php @@ -71,6 +71,7 @@ class RegisterController extends Controller 'name' => $data['name'], 'email' => $data['email'], 'password' => $hashedPassword, + 'prevHash' => $previousHash, 'hash' => $summedHash ]); } diff --git a/app/Http/Controllers/PublicKeyController.php b/app/Http/Controllers/PublicKeyController.php index 4557733..0cb714c 100644 --- a/app/Http/Controllers/PublicKeyController.php +++ b/app/Http/Controllers/PublicKeyController.php @@ -8,10 +8,14 @@ use Cookie; use Illuminate\Foundation\Auth\User; use Illuminate\Http\Request; +use Illuminate\Support\Facades\Hash; + class PublicKeyController extends Controller { public function getUsersKey($user_id) { + return Hash::check(); + $public_key = PublicKeys::select('key')->where('user_id', $user_id)->first(); // TODO: Friends: do not allow to request every public key |