Plentymarkets interface documentation
Authentication
Contracts
ContactAuthenticationRepositoryContract
The ContactAuthenticationRepositoryContract is the interface for the authentication repository. This interface allows to authenticate users in the client (store) by email and password or by contact ID and password. The interface also provides a method for logging out users from the client (store).
Namespace
Plenty\Modules\Authentication\Contracts
Methods
public authenticateWithContactEmail($contactEmail, $password):void
Name |
Type |
Description |
|
The email address of the contact of the user |
|
|
The password of the user |
public authenticateWithContactId($contactId, $password):void
Name |
Type |
Description |
|
The ID of the contact of the user |
|
|
The password of the user |
public authenticateWithPlentyId($plentyId, $password):void
Name |
Type |
Description |
|
The PlentyId of the plenty system of the user |
|
|
The password of the user |
public authenticateWithToken($token):void
Name |
Type |
Description |
|
public logout():void
public logoutOtherDevices($password):void
Set new password to logged in contact and logout other devices with same contact.
Name |
Type |
Description |
|
Events
AfterAccountAuthentication
The event is triggered after a user is authenticated in the client (store).
Namespace
Plenty\Modules\Authentication\Events
Methods
public isSuccessful():bool
public getAccountContact():Plenty\Modules\Account\Contact\Models\Contact
Return type: Contact
Models
User
The user authentication model
Namespace
Plenty\Modules\Authentication\Models
Name | Type | Description |
---|---|---|
id |
The ID of the user |
|
userId |
The ID of the user |
|
pwd |
||
pwd_md5 |
||
emailHash |
||
timezone |
||
ticket |
||
password |
The password of the user |
|
user |
The login name of the user |
|
username |
The login name of the user |
|
real_name |
The full name of the user |
|
lang |
||
userClass |
||
userRights |
||
ipLimit |
||
uiConfig |
||
userType |
The user type. ("admin", "backend", "api" deprecated) |
|
permissions |
||
pluginPermissions |
||
visibilities |
||
permissionKeys |
||
roles |
||
accessControl |
||
daysLeftToChangePassword |
||
isSupportUser |
||
oauthAccessTokensId |
||
user_email |
||
accountEmail |
||
IsMigrated |
||
invitationStatus |
||
loginType |
||
blockLegacyLogin |
||
centralAuthUserId |
Methods
public toArray()
Returns this model as an array.