[Skip to main content](#vessel-content)

#   Change Email address &gt; Re-verify email

##

- **[drmad](/forum/user/30566-drmad "View drmad's Profile")**
- [![drmad's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/30566-drmad "View drmad's Profile") Topic Author
- [ Offline](/forum/user/30566-drmad)

Less More

- Posts: 43
- Thank you received: 2
-
-

12 years 8 months ago -  12 years 8 months ago [\#147374](#147374) by [drmad](/forum/user/30566-drmad "View drmad's Profile")  *[Change Email address &gt; Re-verify email](/forum/33-customers/866462-change-email-address-re-verify-email#147374 "-- HikaShop version -- : 2.3.0 -- Joomla version -- : 3.2.2  In Hikashop, user can change they email address by editing their user profile , however, I found there is no security check for user email address by auto deactivating account and send email verification email. This is a security problem for us ~ user can change to any email address WITHOUT verification check.  Is there any way trigger this event when user changing their email? (maybe a wishlist for Hikashop) .. or anywhere I can disable user to change their own email address via hikashop? Any View configuration? Or I need to goto the respective .php file to remove those parts?  Please advise. thanks")* was created by *[drmad](/forum/user/30566-drmad "View drmad's Profile")*

-- HikaShop version -- : 2.3.0
-- Joomla version -- : 3.2.2

In Hikashop, user can change they email address by editing their user profile , however, I found there is no security check for user email address by auto deactivating account and send email verification email. This is a security problem for us ~ user can change to any email address WITHOUT verification check.

Is there any way trigger this event when user changing their email? (maybe a wishlist for Hikashop) .. or anywhere I can disable user to change their own email address via hikashop? Any View configuration? Or I need to goto the respective .php file to remove those parts?

Please advise. thanks

Last edit: 12 years 8 months ago by [drmad](/forum/user/30566-drmad "View drmad's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NjY0NjItY2hhbmdlLWVtYWlsLWFkZHJlc3MtcmUtdmVyaWZ5LWVtYWlsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

12 years 8 months ago [\#147376](#147376) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Change Email address &gt; Re-verify email](/forum/33-customers/866462-change-email-address-re-verify-email#147376 "-- HikaShop version -- : 2.3.0 -- Joomla version -- : 3.2.2  In Hikashop, user can change they email address by editing their user profile , however, I found there is no security check for user email address by auto deactivating account and send email verification email. This is a security problem for us ~ user can change to any email address WITHOUT verification check.  Is there any way trigger this event when user changing their email? (maybe a wishlist for Hikashop) .. or anywhere I can disable user to change their own email address via hikashop? Any View configuration? Or I need to goto the respective .php file to remove those parts?  Please advise. thanks")*

Hi,

You can use the trigger "onBeforeUserUpdate" to check the user email before his modification.
[ www.hikashop.com/support/support/documen...l#onBeforeUserUpdate](http://www.hikashop.com/support/support/documentation/62-hikashop-developer-documentation.html#onBeforeUserUpdate)

At this moment, you can accept the modification or reject it (setting the $do to false).
You can also edit the $element before the save, so you can restore the previous email of the user and let the rest of the process continue (but without allowing the modification of the email).

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NjY0NjItY2hhbmdlLWVtYWlsLWFkZHJlc3MtcmUtdmVyaWZ5LWVtYWlsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[drmad](/forum/user/30566-drmad "View drmad's Profile")**
- [![drmad's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/30566-drmad "View drmad's Profile") Topic Author
- [ Offline](/forum/user/30566-drmad)

Less More

- Posts: 43
- Thank you received: 2
-
-

12 years 8 months ago [\#147430](#147430) by [drmad](/forum/user/30566-drmad "View drmad's Profile")  Replied by *[drmad](/forum/user/30566-drmad "View drmad's Profile")* on topic *[Change Email address &gt; Re-verify email](/forum/33-customers/866462-change-email-address-re-verify-email#147430 "-- HikaShop version -- : 2.3.0 -- Joomla version -- : 3.2.2  In Hikashop, user can change they email address by editing their user profile , however, I found there is no security check for user email address by auto deactivating account and send email verification email. This is a security problem for us ~ user can change to any email address WITHOUT verification check.  Is there any way trigger this event when user changing their email? (maybe a wishlist for Hikashop) .. or anywhere I can disable user to change their own email address via hikashop? Any View configuration? Or I need to goto the respective .php file to remove those parts?  Please advise. thanks")*

Hi Jerome,

Thanks. I think we will go for the easiest way - to avoid user to modify his/her own email address. Would you give me some guide for a quick modification to Hika's file? (like, ignoring user's modification)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NjY0NjItY2hhbmdlLWVtYWlsLWFkZHJlc3MtcmUtdmVyaWZ5LWVtYWlsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

12 years 8 months ago [\#147517](#147517) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Change Email address &gt; Re-verify email](/forum/33-customers/866462-change-email-address-re-verify-email#147517 "-- HikaShop version -- : 2.3.0 -- Joomla version -- : 3.2.2  In Hikashop, user can change they email address by editing their user profile , however, I found there is no security check for user email address by auto deactivating account and send email verification email. This is a security problem for us ~ user can change to any email address WITHOUT verification check.  Is there any way trigger this event when user changing their email? (maybe a wishlist for Hikashop) .. or anywhere I can disable user to change their own email address via hikashop? Any View configuration? Or I need to goto the respective .php file to remove those parts?  Please advise. thanks")*

Hi,

Well, modification of HikaShop core files is not recommended because you won't be able to update HikaShop without loosing your modification.
That's why I was talking about a little custom plugin.

In the plugin, with the trigger I gave you in my previous post. You can simply load the HikaShop user details and replace the user_email with the "old" user_email.
From that point, you will be able to improve the plugin ; make some tests on the "new" user_email, display a warning/error message, etc.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NjY0NjItY2hhbmdlLWVtYWlsLWFkZHJlc3MtcmUtdmVyaWZ5LWVtYWlsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.063 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
