Php code for "Email will be username"

  • Posts: 152
  • Thank you received: 11
8 months 1 week ago #354507

-- HikaShop version -- : 4.7.5
-- HikaMarket version -- : 4.1.1
-- Joomla version -- : 4.3.3
-- PHP version -- : 8.0.29

Market options > Registration options > Email will be username > YES

In the registration.php file there is the condition if($this->config->get('registration_email_is_username', 0) == 0)

In that php file there is the code that "copy" the value of the email in the username field ??

Thanks

Last edit: 8 months 1 week ago by gerryna09.

Please Log in or Create an account to join the conversation.

  • Posts: 26013
  • Thank you received: 4004
  • MODERATOR
8 months 1 week ago #354519

Hello,

When the setting is enabled, the "username" field is not displayed during the registration.
The HikaShop/Joomla registration process will use the email as username.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 152
  • Thank you received: 11
8 months 1 week ago #354530

Hi Jerome, it's all clear to me :)

I would like to know in which php file there is the code that "copy" the value of the email in the username field

Please Log in or Create an account to join the conversation.

  • Posts: 26013
  • Thank you received: 4004
  • MODERATOR
8 months 1 week ago #354535

Hello,

administrator/components/com_hikamarket/classes/user.php
function : register

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Moderators: Obsidev
Time to create page: 0.061 seconds
Powered by Kunena Forum