projects
/
core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
State (see State Pattern) prepared, a lot reworked/refactured
[core.git]
/
inc
/
classes
/
main
/
filter
/
verifier
/
class_ConfirmCodeVerifierFilter.php
diff --git
a/inc/classes/main/filter/verifier/class_ConfirmCodeVerifierFilter.php
b/inc/classes/main/filter/verifier/class_ConfirmCodeVerifierFilter.php
index 7702aabcfd58e1f035de4af963968a89ed3212af..6086de89706b5d70fafd4c82e85005d0f3c075cf 100644
(file)
--- a/
inc/classes/main/filter/verifier/class_ConfirmCodeVerifierFilter.php
+++ b/
inc/classes/main/filter/verifier/class_ConfirmCodeVerifierFilter.php
@@
-51,7
+51,6
@@
class ConfirmCodeVerifierFilter extends BaseFilter implements Filterable {
* @param $requestInstance An instance of a class with an Requestable interface
* @param $responseInstance An instance of a class with an Responseable interface
* @return void
* @param $requestInstance An instance of a class with an Requestable interface
* @param $responseInstance An instance of a class with an Responseable interface
* @return void
- * @throws NullPointerException If the user instance from registry is null
* @throws FilterChainException If this filter fails to operate
*/
public function execute (Requestable $requestInstance, Responseable $responseInstance) {
* @throws FilterChainException If this filter fails to operate
*/
public function execute (Requestable $requestInstance, Responseable $responseInstance) {
@@
-82,12
+81,6
@@
class ConfirmCodeVerifierFilter extends BaseFilter implements Filterable {
// Get a user instance from registry
$userInstance = Registry::getRegistry()->getInstance('user');
// Get a user instance from registry
$userInstance = Registry::getRegistry()->getInstance('user');
- // Is the instance there?
- if (is_null($userInstance)) {
- // Throw an exception here
- throw new NullPointerException ($this, self::EXCEPTION_IS_NULL_POINTER);
- } // END - if
-
// Get the confirm code from user for comparison
$userCode = $userInstance->getField(UserDatabaseWrapper::DB_COLUMN_CONFIRM_HASH);
// Get the confirm code from user for comparison
$userCode = $userInstance->getField(UserDatabaseWrapper::DB_COLUMN_CONFIRM_HASH);