TYPE-0 PERFECT SEIHA
Server Info:
FreeBSD scimitar.blueboard.cz 13.5-STABLE FreeBSD 13.5-STABLE stable/13-4f2925105 GENERIC amd64
Software:
Apache
User:
www
Crot
Crot File
Crot Dir
Crot Command
[LockSelf]
[HOME]
data
www
19068
fszoo_net
www
api
2
root
vendor
nette
security
src
Security
Show Hidden Files
Edit File: /data/www/19068/fszoo_net/www/api/2/root/vendor/nette/security/src/Security/SimpleAuthenticator.php
<?php /** * This file is part of the Nette Framework (http://nette.org) * Copyright (c) 2004 David Grudl (http://davidgrudl.com) */ namespace Nette\Security; use Nette; /** * Trivial implementation of IAuthenticator. */ class SimpleAuthenticator extends Nette\Object implements IAuthenticator { /** @var array */ private $userlist; /** @var array */ private $usersRoles; /** * @param array list of pairs username => password * @param array list of pairs username => role[] */ public function __construct(array $userlist, array $usersRoles = array()) { $this->userlist = $userlist; $this->usersRoles = $usersRoles; } /** * Performs an authentication against e.g. database. * and returns IIdentity on success or throws AuthenticationException * @return IIdentity * @throws AuthenticationException */ public function authenticate(array $credentials) { list($username, $password) = $credentials; foreach ($this->userlist as $name => $pass) { if (strcasecmp($name, $username) === 0) { if ((string) $pass === (string) $password) { return new Identity($name, isset($this->usersRoles[$name]) ? $this->usersRoles[$name] : NULL); } else { throw new AuthenticationException('Invalid password.', self::INVALID_CREDENTIAL); } } } throw new AuthenticationException("User '$username' not found.", self::IDENTITY_NOT_FOUND); } }
Crotin
Name
Size
Permissions
Modified
User/Group
IIdentity.php
422
0644
2016-03-05 11:26:44
Unknown/Unknown
AuthenticationException.php
255
0644
2016-03-05 11:26:44
Unknown/Unknown
IAuthorizator.php
641
0644
2016-03-05 11:26:44
Unknown/Unknown
IAuthenticator.php
651
0644
2016-03-05 11:26:44
Unknown/Unknown
Identity.php
2452
0644
2016-03-05 11:26:44
Unknown/Unknown
Passwords.php
1958
0644
2016-03-05 11:26:44
Unknown/Unknown
User.php
5810
0644
2016-03-05 11:26:44
Unknown/Unknown
SimpleAuthenticator.php
1401
0644
2016-03-05 11:26:44
Unknown/Unknown
IRole.php
363
0644
2016-03-05 11:26:44
Unknown/Unknown
IResource.php
369
0644
2016-03-05 11:26:44
Unknown/Unknown
IUserStorage.php
1248
0644
2016-03-05 11:26:43
Unknown/Unknown
Permission.php
20297
0644
2016-03-05 11:26:44
Unknown/Unknown
NGANU
Rename
Hapus
Chmod
Chown
Touch
Zip
Unzip
Download
Crotin