Post by mrblond » Wed Oct 18, 2017 9:10 pm

While I try to change the default John Doe user and the user groups, I put there my admin name and save it with some restrictions and other password.
Now, I can log in the administration side only as one user and I can't reach the System menu. :-[
In other words I executed a self-restriction. :choke:
Can I correct this?

Active Member

Posts

Joined
Fri Oct 13, 2017 4:43 pm

Post by yodapt » Wed Oct 18, 2017 9:36 pm

Did you change the administrator group?

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm


Post by mrblond » Wed Oct 18, 2017 9:50 pm

I don't remember. I just know that I put my admin name somewhere and save it with another password,
then create some other user and changed the options of some existing group.
Realizing that something is wrong, I change some names again but anyway I lost access to the system folder.

Now, I remember my admin password that I created during the installation but when I try to log in
the program says that admin name doesn't mach the password.

Active Member

Posts

Joined
Fri Oct 13, 2017 4:43 pm

Post by straightlight » Wed Oct 18, 2017 10:02 pm

Followed should provide a working solution: http://www.speckygeek.com/how-to-reset- ... -password/ . It should also work with Opencart v3.x releases.

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 mrblond » Wed Oct 18, 2017 10:41 pm

Well, I executed the steps in the above link. But this just changed my password to another one.
I still don't have access to the System folder in the dashboard.
The drop down menu of the System folder only shows "Localisation".
I don't see neither "Settings" nor "Users" options.

Active Member

Posts

Joined
Fri Oct 13, 2017 4:43 pm

Post by straightlight » Wed Oct 18, 2017 10:43 pm

For user groups, see this solution: viewtopic.php?f=190&t=169431#p643266

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 mrblond » Wed Oct 18, 2017 10:54 pm

Should I Uninstall the program and start everything again. ???

Active Member

Posts

Joined
Fri Oct 13, 2017 4:43 pm

Post by straightlight » Wed Oct 18, 2017 10:55 pm

The steps above have been provided in order to avoid reinstallation process.

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 mrblond » Wed Oct 18, 2017 11:13 pm

Thanks for helping me!
I follow the link but I need clarification here:

1. To change false with true? right?

Code: Select all

public function hasPermission($key, $value) {
		if (isset($this->permission[$key])) {
			return in_array($value, $this->permission[$key]);
		} else {
			return false;
		}
2. What does this mean?:
"...Don't forget to remove the edit after you've done that, or permissions will not be checked at all."

Active Member

Posts

Joined
Fri Oct 13, 2017 4:43 pm

Post by straightlight » Wed Oct 18, 2017 11:17 pm

According to the instructions, it does indicate it's true.

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 » Wed Oct 18, 2017 11:21 pm

After restoring your access, however, do NOT forget to reverse the process in the instructed codes for protection purposes.

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 mrblond » Wed Oct 18, 2017 11:36 pm

Not working.
I changed return false; to return true;

The instruction is not clear, actually according to the instruction all the code in { } should be deleted and substituted with return true;
Should I do that?

Active Member

Posts

Joined
Fri Oct 13, 2017 4:43 pm

Post by straightlight » Wed Oct 18, 2017 11:47 pm

That is not what it's indicated. The return true should be added after the hasPermission line.

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 mrblond » Thu Oct 19, 2017 12:04 am

Yeeees!
Finally it works now.
Thanks.

Active Member

Posts

Joined
Fri Oct 13, 2017 4:43 pm

Post by straightlight » Thu Oct 19, 2017 12:05 am

Great and don't forget to remove that added line once you gain back access and restored all checkboxes from the administrators group in the Opencart admin.

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: Baidu [Spider] and 104 guests