src/Domain/Repository/Identity/AdministratorRepository.php
public function findOneByLoginCredentials(string $loginName, string $plainTextPassword)
    {
        $passwordHash = $this->hashGenerator->createPasswordHash($plainTextPassword);

        return $this->findOneBy(
            [
                'loginName' => $loginName,
                'passwordHash' => $passwordHash,
                'superUser' => true,
            ]
        );
    }
public function findOneByLoginCredentials(string $loginName, string $plainTextPassword)
    {
        $passwordHash = $this->hashGenerator->createPasswordHash($plainTextPassword);

        return $this->findOneBy(
            [
                'loginName' => $loginName,
                'passwordHash' => $passwordHash,
                'superUser' => true,
            ]
        );
    }
public function findOneByLoginCredentials ( string $ loginName , string $ plainTextPassword ) { $ passwordHash = $ this -> hashGenerator -> createPasswordHash ( $ plainTextPassword ) ; return $ this -> findOneBy ( [ 'loginName' => $ loginName , 'passwordHash' => $ passwordHash , 'superUser' => true , ] ) ; }
Finds the Administrator with the given login credentials. Returns null if there is no match,
i.e., if the login credentials are incorrect.

This also checks that the administrator is a super user.

@param string $loginName
@param string $plainTextPassword

@return Administrator|null
Finds the Administrator with the given login credentials . Returns null if there is no match i . e . if the login credentials are incorrect .