]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/main/login/class_ShipSimuGuestLogin.php
- XHTML errors/warnings fixed in some pages
[shipsimu.git] / application / ship-simu / main / login / class_ShipSimuGuestLogin.php
index 24c44f65c270cfd6a0ddf03cfd0c4d8fdda750e6..7336865d406b767c48adaab4dfd8f26ee2c26f9c 100644 (file)
@@ -36,12 +36,6 @@ class ShipSimuGuestLogin extends BaseFrameworkSystem implements LoginableUser {
                // Call parent constructor
                parent::__construct(__CLASS__);
 
-               // Set part description
-               $this->setObjectDescription("Guest login for Ship-Simu");
-
-               // Create unique ID number
-               $this->generateUniqueId();
-
                // Clean up a little
                $this->removeNumberFormaters();
                $this->removeSystemArray();
@@ -109,7 +103,7 @@ class ShipSimuGuestLogin extends BaseFrameworkSystem implements LoginableUser {
                } // END - if
 
                // Is the password correct?
-               if (!$userInstance->ifPasswordHashMatches($requestInstance)) {
+               if ($userInstance->ifPasswordHashMatches($requestInstance) === false) {
                        // Mismatching password
                        throw new UserPasswordMismatchException(array($this, $userInstance), BaseUser::EXCEPTION_USER_PASS_MISMATCH);
                } // END - if