Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (AdapterInterface $connection, EncryptorInterface $encryptor, array $data) | |
save () | |
validateUserMatches () | |
Data Fields | |
const | KEY_USER = 'admin-user' |
const | KEY_PASSWORD = 'admin-password' |
const | KEY_EMAIL = 'admin-email' |
const | KEY_FIRST_NAME = 'admin-firstname' |
const | KEY_LAST_NAME = 'admin-lastname' |
const | KEY_PREFIX = 'db-prefix' |
Protected Member Functions | |
generatePassword () | |
Definition at line 15 of file AdminAccount.php.
__construct | ( | AdapterInterface | $connection, |
EncryptorInterface | $encryptor, | ||
array | $data | ||
) |
Default Constructor
AdapterInterface | $connection | |
EncryptorInterface | $encryptor | |
array | $data |
Definition at line 54 of file AdminAccount.php.
|
protected |
save | ( | ) |
Save administrator account and user role to DB.
If the administrator account exists, update it.
Definition at line 81 of file AdminAccount.php.
validateUserMatches | ( | ) |
Validates that the username and email both match the user, and that password exists and is different from user name.
Definition at line 164 of file AdminAccount.php.
const KEY_EMAIL = 'admin-email' |
Definition at line 22 of file AdminAccount.php.
const KEY_FIRST_NAME = 'admin-firstname' |
Definition at line 23 of file AdminAccount.php.
const KEY_LAST_NAME = 'admin-lastname' |
Definition at line 24 of file AdminAccount.php.
const KEY_PASSWORD = 'admin-password' |
Definition at line 21 of file AdminAccount.php.
const KEY_PREFIX = 'db-prefix' |
Definition at line 25 of file AdminAccount.php.
const KEY_USER = 'admin-user' |
#+ Data keys
Definition at line 20 of file AdminAccount.php.