NotConfirmedException.php 620 B

1234567891011121314151617181920
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace OC\AppFramework\Middleware\Security\Exceptions;
  7. use OCP\AppFramework\Http;
  8. /**
  9. * Class NotConfirmedException is thrown when a resource has been requested by a
  10. * user that has not confirmed their password in the last 30 minutes.
  11. *
  12. * @package OC\AppFramework\Middleware\Security\Exceptions
  13. */
  14. class NotConfirmedException extends SecurityException {
  15. public function __construct() {
  16. parent::__construct('Password confirmation is required', Http::STATUS_FORBIDDEN);
  17. }
  18. }