Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement MasterSaltInvalid exception
- Loading branch information
1 parent
7c696c6
commit 2dac13a
Showing
2 changed files
with
15 additions
and
3 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
application/MantisBT/Exception/Security/MasterSaltInvalid.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
namespace MantisBT\Exception\Security; | ||
use MantisBT\Exception\ExceptionAbstract; | ||
|
||
require_api('lang_api.php'); | ||
|
||
class MasterSaltInvalid extends ExceptionAbstract { | ||
public function __construct() { | ||
$errorMessage = lang_get(ERROR_CRYPTO_MASTER_SALT_INVALID, null, false); | ||
parent::__construct(ERROR_CRYPTO_MASTER_SALT_INVALID, $errorMessage, null); | ||
$this->responseCode = 500; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters