getAnonAllowed() public method

Gets whether users are allowed to generate anonymous accounts
public getAnonAllowed ( ) : boolean
return boolean
Esempio n. 1
0
 public function testLoadsFullJsonConfig()
 {
     $obj = new SqrlConfiguration();
     $obj->load(__DIR__ . '/Resources/allOptional.json');
     $this->assertEquals(array(1), $obj->getAcceptedVersions());
     $this->assertEquals('otherdomain.com', $obj->getDomain());
     $this->assertEquals('sqrl.php', $obj->getAuthenticationPath());
     $this->assertEquals('My Example Server', $obj->getFriendlyName());
     $this->assertTrue($obj->getSecure());
     $this->assertTrue($obj->getAnonAllowed());
     $this->assertEquals(9, $obj->getNonceMaxAge());
     $this->assertEquals(250, $obj->getQrHeight());
     $this->assertEquals(5, $obj->getQrPadding());
     $this->assertEquals('gibberish data', $obj->getNonceSalt());
 }