Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getEncoderName example
$customer
->
setDoubleOptinEmailSentDate
(
new
DateTime
(
)
)
;
}
// Password validation
if
(
$customer
->
getPassword
(
)
)
{
$customer
->
setEncoderName
(
$this
->passwordManager->
getDefaultPasswordEncoderName
(
)
)
;
$customer
->
setPassword
(
$this
->passwordManager->
encodePassword
(
$customer
->
getPassword
(
)
,
$customer
->
getEncoderName
(
)
)
)
;
}
// Account mode validation
if
(
$customer
->
getAccountMode
(
)
== Customer::ACCOUNT_MODE_FAST_LOGIN
)
{
$customer
->
setPassword
(
md5
(
uniqid
(
(string)
rand
(
)
)
)
)
;
$customer
->
setEncoderName
(
'md5'
)
;
}
if
(
!
$customer
->
getPaymentId
(
)
)
{