Post by straightlight » Thu Jun 11, 2020 6:53 am

Package re-uploaded.

- Finalized the admin and catalog mail events.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by sw!tch » Thu Jun 11, 2020 8:31 am

Nice Job @straightlight.

Any plans to replace SHA with password_hash()? I believe this was also implemented into the master branch last I checked.
https://github.com/opencart/opencart/pull/5798

Disclaimer: - I think a few additional changes are required for the password hash that's not in the linked PR , you will have to double check against the master. I believe its some fixes to html_entity_decode that were later implemented for this feature.
Last edited by sw!tch on Thu Jun 11, 2020 11:38 am, edited 2 times in total.

Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by straightlight » Thu Jun 11, 2020 10:26 am

Disclaimer: - I think a few additional changes are required for this as well, you will have to compare against the master.
If you notice official changes where those commits have not been mentioned on the topic, please mention them!

As for the password_hash, the reason why I didn't integrated this yet is because the REMOTE_ADDR lookups are too repetitive. I am currently consolidating the idea on creating a new IP method in the library to use identical lookups instead of different ones throughout the platform since it can be quite confusing at times especially when it comes to patching.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by sw!tch » Thu Jun 11, 2020 11:36 am

straightlight wrote:
Thu Jun 11, 2020 10:26 am
If you notice official changes where those commits have not been mentioned on the topic, please mention them!
Sorry edited my post. I was referring to the password_hash not other fixes. Clarified my post above.

Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by xxvirusxx » Thu Jun 11, 2020 3:38 pm

sw!tch wrote:
Thu Jun 11, 2020 11:36 am
straightlight wrote:
Thu Jun 11, 2020 10:26 am
If you notice official changes where those commits have not been mentioned on the topic, please mention them!
Sorry edited my post. I was referring to the password_hash not other fixes. Clarified my post above.
https://github.com/opencart/opencart/co ... f0a17f742a
https://github.com/opencart/opencart/co ... f8a3ded55c

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by straightlight » Thu Jun 11, 2020 5:15 pm

xxvirusxx wrote:
Thu Jun 11, 2020 3:38 pm
sw!tch wrote:
Thu Jun 11, 2020 11:36 am
straightlight wrote:
Thu Jun 11, 2020 10:26 am
If you notice official changes where those commits have not been mentioned on the topic, please mention them!
Sorry edited my post. I was referring to the password_hash not other fixes. Clarified my post above.
https://github.com/opencart/opencart/co ... f0a17f742a
https://github.com/opencart/opencart/co ... f8a3ded55c
Ok, I tried it one more time with the password hash. Now, it works but without modifying the startup with the integrated session as it shows in the master branch. However, the only reason why I'm adding this is because Daniel seem to approve it from the commits the fact that he replied to the original poster and that the commits were merged. Nevertheless, my notes to this is that I don't totally agree with this integration due to the system/library/cart folder, for either the customer or user library, where the $new_password_hashed variable provides no guarantee of success since there's also a possibility that the $new_password_hashed may return false in the condition. When the case, the password is not being updated as per the codes shows as I don't believe this is the best suggestion based on a isset condition as to know if only not false to enforce security on a platform as a solution as much as access management is concerned despite if the html_entity_decode with password_hashed is being used or not in this case.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by straightlight » Thu Jun 11, 2020 5:20 pm

Now I can't even login in to either sides. Process reversed, request denied.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by xxvirusxx » Thu Jun 11, 2020 5:45 pm

straightlight wrote:
Thu Jun 11, 2020 5:20 pm
Now I can't even login in to either sides. Process reversed, request denied.
Clean install or upgrade test?
On my modified 3.0.3.3 work just fine.

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by straightlight » Thu Jun 11, 2020 5:51 pm

xxvirusxx wrote:
Thu Jun 11, 2020 5:45 pm
straightlight wrote:
Thu Jun 11, 2020 5:20 pm
Now I can't even login in to either sides. Process reversed, request denied.
Clean install or upgrade test?
On my modified 3.0.3.3 work just fine.
Clean install. These modifications will be focused on the master branch.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by xxvirusxx » Thu Jun 11, 2020 5:53 pm

Why don't work on Github?....private repo...with some developers from here..is more easy

This I was added in my modified version. Remove this link after you see
https://github.com/condor2/Opencart_303 ... 00c6e2d1d2

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by straightlight » Thu Jun 11, 2020 5:54 pm

As for the IP address, the system/startup already takes care of the forwarding or the client IP. Only the catalog/controller/common/footer.php file will be modified accordingly.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by sw!tch » Thu Jun 11, 2020 6:00 pm

xxvirusxx wrote:
Thu Jun 11, 2020 5:53 pm
Why don't work on Github?....private repo...with some developers from here..is more easy
Agreed. If possible put it up on GitHub, it's incredibly difficult to track changes or to cherry pick fixes out.

Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by straightlight » Thu Jun 11, 2020 6:01 pm

Package updated.

- Modified IP lookup in catalog/controller/common/footer.php file as per Daniel.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by straightlight » Fri Jun 12, 2020 4:27 am

Package updated.

- Removed download_report from the core as per Daniel. Now being used in the features. From now on, all features suggestions from the master branch must be posted into this section: viewtopic.php?f=201&p=790560#p790560 . Please read the guidelines from the topic before posting.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by straightlight » Fri Jun 12, 2020 8:38 am

Package updated.

- Replaced .twig with \.twig in <filesmatch> of .htaccess.txt file as per this commit: https://github.com/opencart/opencart/pull/7992 .

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by derzet » Sat Jun 13, 2020 8:42 pm

Okay, so I tried opencart-3.0.3.4-core-pre.zip:
The admin->product section isn't really usable, see #7994 and #7996 on Github

Newbie

Posts

Joined
Sat Jun 06, 2020 11:17 pm

Post by straightlight » Sat Jun 13, 2020 8:50 pm

derzet wrote:
Sat Jun 13, 2020 8:42 pm
Okay, so I tried opencart-3.0.3.4-core-pre.zip:
The admin->product section isn't really usable, see #7994 and #7996 on Github
Ok, confirmed and fixed. Will re-upload both packages in a moment.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by straightlight » Sat Jun 13, 2020 9:01 pm

straightlight wrote:
Sat Jun 13, 2020 8:50 pm
derzet wrote:
Sat Jun 13, 2020 8:42 pm
Okay, so I tried opencart-3.0.3.4-core-pre.zip:
The admin->product section isn't really usable, see #7994 and #7996 on Github
Ok, confirmed and fixed. Will re-upload both packages in a moment.
Ok, package re-uploaded.

- Reverted change in .htaccess from \.twig back to .twig since it's not a bug - it's intended this way.
- Fixed admin/controller/catalog folder as per derzet.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by xxvirusxx » Sat Jun 13, 2020 9:31 pm

As customer logged when you go register affiliate account in the console you will get:

Code: Select all

Uncaught TypeError: $(...).datetimepicker is not a function
And from admin if you try to add a custom field you will get:

Code: Select all

admin/controller/customer/custom_field.php on line 210
Custom field not added, and when click on Custom Field..you will get same error.
I don't see where is declared: $custom_field

Code: Select all

if ($custom_field['status']) {

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by straightlight » Sat Jun 13, 2020 9:45 pm

xxvirusxx wrote:
Sat Jun 13, 2020 9:31 pm
As customer logged when you go register affiliate account in the console you will get:

Code: Select all

Uncaught TypeError: $(...).datetimepicker is not a function
And from admin if you try to add a custom field you will get:

Code: Select all

admin/controller/customer/custom_field.php on line 210
Custom field not added, and when click on Custom Field..you will get same error.
I don't see where is declared: $custom_field

Code: Select all

if ($custom_field['status']) {
The admin/controller/customer/custom_field used the wrong array name from the getCustomFields method. In general, Opencart uses $custom_fields and uses the array convention name of: $custom_field. The actual issue was from the $results to name the convention into: $result in the foreach statement. This has now been fixed. As for the datetimepicker, I am currently looking at the issue.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 3 guests