How to reset admin user access from database in X-Cart? - x-cart

I want to reset admin user access of X-Xart backend.
I have database access.
How can i do?
Can you please help me?
Thank you.

what X-Cart version do you have? There are two X-Carts: X-Cart 4 Classic and X-Cart 5 which have very different database structures.
UPDATE 03.09.2018
X-Cart 4 https://help.x-cart.com/index.php?title=X-Cart:FAQs#How_do_I_change_or_reset_my_admin_password.3F_.28I_lost_it.29

Related

Sitecore 10 - Reset admin password when you cannot log in

I have installed Sitecore 10 on my local machine for development but have forgotton the master admin password. So now I am not able to log into sitecore from the browser.
I would like to know about how to reset this admin password.
Please give me detailed steps and not just a update query from other posts which I have tried and it has not worked.
Thanks a ton in Advance :)
You can do it programmaticaly or reset it in the SQL database, but with SQL that depend on the hash algorithm configured. Therefore your previous scripts may not work, programmatically works independently of the hash algorithm.
Programmatically reset password to b:
string userName = "sitecore\\admin";
var user = Membership.GetUser(userName);
user.UnlockUser();
user.ChangePassword(user.ResetPassword(), "b");
See for compleet ready to use script:
http://www.stockpick.nl/english/how-to-add-a-sitecore-admin-programmatically/
https://github.com/jbluemink/Sitecore-Admin-Scripts-for-Development-and-Deploying

GRANT privileges to an admin named record in postgreSQL

I am maintaining an Audit Log. I have like 1100 tables in my database. Problem is that I'd like to use triggers to store also the id of user who made those changes. And by id I mean id from node js application, not PostgreSQL user id. I am using PostgreSQL 9.3. Please provide the necessary help. Thanks in advance.

Migrate Sitecore security(user/domain/roles/groups) between Sitecore instances?

I need to migrate Sitecore 6 user/domain/roles/groups to Sitecore 8.1 .
Can I serialize complete security(user/domain/roles/groups) entities, Is there any approach is there?
Yes, you can serialize them and deserialize in the new environment.
Remember that all the passwords will be reset to b.
Below there is a screen from Role Manager. There are 2 buttons:
serialize all roles
revert all roles
Use first of the to serialize all roles on your Sitecore 6 solution. You will find new directory in your Data\serialization folder called security.
Copy the folder to your Sitecore 8 solution. Serialize Sitecore 8 roles, and then click Revert All Roles on Sitecore 8 solution. You need to serialize Sitecore 8 roles first, cause if you click Revert without serializing them first, all the roles which were not in Sitecore 6 but were in Sitecore 8 will be removed.
Repeat those steps for domains and users.
Chapter 2.2.3 of the Sitecore Serialization Guide covers the topic.
And here is a guide on Transferring user passwords between Sitecore instances
It's also possible to use the Sitecore Package Designer to transfer both roles and users:
Bear in mind that any users transferred like this would have their password reset to a random value due to the fact that Sitecore stores passwords in a hashed format in the database.
To migrate domains, by default Sitecore will add these to /App_Config/Security/Domains.config so either add this file into your Visual Studio project or copy it across instances.

Django / Mezzanine: Staff users can't log in to admin

Using Django 1.8 and Mezzanine 4.0 and Python 3, if I assign a user as staff, I find they don't have permission to log into the admin pages of my site. They can if I assign them as superuser (which I don't want to do). My ALLOWED_HOSTS is set up properly and the same domain appears in the "Site permissions" list for the users.
I've searched online for others who have experienced this but the only thread I found was someone who found that the problem mysteriously resolved itself when they reinstalled their entire stack (which I don't want to do either!)
Can anyone shed any light?
If you open up the settings for the user you can select the site that you want it to have access to. Check out this for further information: How to set the permissions for admins of Django/Mezzanine sites

Accessing Extra-Date using social_auth for django

I am using social_auth in my django application to use facebook connect. I have followed steps which are given in the documentation (https://github.com/omab/django-social-auth). But I am struggling in accessing extra info such as 'user_about_me','profile_pic' etc. I am able to see the access token in my db column but I am really struggling in making use of it.
Can someone help me.
Thanks in advance :)
You will have to create a Profile model for your user in order to store additional data if thats what you need. With the token you should be able to make use of the Graph Api https://developers.facebook.com/docs/reference/api/user/
django-social-auth is just that.. auth, not a facebook app.