From ea7966cc6823ddaa349740e438c4f0cb588f5b32 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Sun, 24 May 2015 22:42:26 +0200 Subject: User id -> email in other classes --- src/controllers/PasswordReminderController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/controllers/PasswordReminderController.php') diff --git a/src/controllers/PasswordReminderController.php b/src/controllers/PasswordReminderController.php index ed3592e..569973b 100644 --- a/src/controllers/PasswordReminderController.php +++ b/src/controllers/PasswordReminderController.php @@ -23,13 +23,13 @@ class PasswordReminderController extends BaseController { } /** - * Set the userId and create a random token - * @param $userId + * Set the userEmail and create a random token + * @param $userEmail * @throws StoreResourceFailedException * @return PasswordReminder */ - public function store($userId) { - $user = User::findOrFail($userId); + public function store($userEmail) { + $user = User::findOrFail($userEmail); $this->passwordReminder->userEmail = $user->email; $this->passwordReminder->token = bin2hex(openssl_random_pseudo_bytes(24)); -- cgit v1.2.3