diff options
author | Camil Staps | 2015-05-24 22:42:26 +0200 |
---|---|---|
committer | Camil Staps | 2015-05-24 22:42:26 +0200 |
commit | ea7966cc6823ddaa349740e438c4f0cb588f5b32 (patch) | |
tree | ab5e2bb9de2b64ee3cdc7d5c0bfbca61ce742335 /src/controllers/PasswordReminderController.php | |
parent | Using email as id; User & PasswordReminder (diff) |
User id -> email in other classes
Diffstat (limited to 'src/controllers/PasswordReminderController.php')
-rw-r--r-- | src/controllers/PasswordReminderController.php | 8 |
1 files changed, 4 insertions, 4 deletions
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)); |