<?php

// Users data
$imSettings['access']['users'] = array(
	'admin' => array(
		'id' => 'g9e601j8',
		'groups' => array('g9e601j8'),
		'firstname' => 'Admin',
		'lastname' => '',
		'email' => 'admin',
		'password' => '$2a$11$1yVDD9K3aOqSm/DA82hpfe9EDoHYnt2C67VXP7D3Mqri4HBkAZiH2',
		'crypt_encoding' => 'csharp_bcrypt',
		'db_stored' => false,
		'page' => 'index.html'
	),
	'nuovoutente' => array(
		'id' => '6e21pw1f',
		'groups' => array('6e21pw1f'),
		'firstname' => 'NuovoUtente',
		'lastname' => '',
		'email' => 'nuovoutente',
		'password' => '$2a$11$FEfm5z/gkOnp.XM1GJbUZeJoitBwNnZSjs4JAJn/HTacy8F4eQ20S',
		'crypt_encoding' => 'csharp_bcrypt',
		'db_stored' => false,
		'page' => 'index.html'
	)
);

// Admins list
$imSettings['access']['admins'] = array('g9e601j8');

// Page/Users permissions
$imSettings['access']['pages'] = array();

// PASSWORD CRYPT

$imSettings['access']['password_crypt'] = array(
	'encoding_id' => 'php_default',
	'encodings' => array(
		'no_crypt' => array(
			'encode' => function ($pwd) { return $pwd; },
			'check' => function ($input, $encoded) { return $input == $encoded; }
		),
		'php_default' => array(
			'encode' => function ($pwd) { return password_hash($pwd, PASSWORD_DEFAULT); },
			'check' => function ($input, $encoded) { return password_verify($input, $encoded); }
		),
		'csharp_bcrypt' => array(
			'encode' => function ($pwd) { return password_hash($pwd, PASSWORD_BCRYPT); },
			'check' => function ($input, $encoded) { return password_verify($input, $encoded); }
		)
	)
);

// End of file access.inc.php