2016-09-19 10:03:03 -04:00
|
|
|
<?php
|
2025-06-30 09:04:05 -04:00
|
|
|
|
2016-09-19 10:03:03 -04:00
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2016-09-19 10:03:03 -04:00
|
|
|
*/
|
|
|
|
|
namespace OC\AppFramework\Middleware\Security\Exceptions;
|
|
|
|
|
|
|
|
|
|
use OCP\AppFramework\Http;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Class NotConfirmedException is thrown when a resource has been requested by a
|
|
|
|
|
* user that has not confirmed their password in the last 30 minutes.
|
|
|
|
|
*
|
|
|
|
|
* @package OC\AppFramework\Middleware\Security\Exceptions
|
|
|
|
|
*/
|
|
|
|
|
class NotConfirmedException extends SecurityException {
|
2025-06-23 12:13:39 -04:00
|
|
|
public function __construct(string $message = 'Password confirmation is required') {
|
|
|
|
|
parent::__construct($message, Http::STATUS_FORBIDDEN);
|
2016-09-19 10:03:03 -04:00
|
|
|
}
|
|
|
|
|
}
|