/** * Generates a token for password change and saves it in the * 'password_reminders' table with the email of the * user. * * @return string $token */ public function forgotPassword() { return ConfideFacade::forgotPassword($this->email); }
/** * Attempt to confirm the account with code * * @param string $code * * @return boolean */ public function confirm($code) { $user = User::where('confirmation_code', $code)->first(); if (!$user['confirmed']) { return Confide::confirm($code); } return false; }