Topic: [Tutorial] Help I'm Blocked from the Manager and Can't Get In!  (Read 34815 times)

Pages: [1] 2 3   Go Down

#1: 20-May-2005, 10:20 AM

Administrator

zi
MODx Special Forces /
Posts: 3,688

May Peace Be On You

WWW
So you get blocked from MODx Content Manager!

No problem, just read this step by step guide and in less then 5 minutes you will be able to login again.  Cheesy

You need to have access to phpMyAdmin on your host, if you have not then ask your service provider.
  • Now open phpMyAdmin.
  • Select your database from dropdown list in left menu of phpMyAdmin. ( e.g. modx )
  • Now, you see the list of tables displayed in left menu.
  • Find table name with "table_prefix_user_attributes". ( e.g. modx_user_attributes )
  • Find your username in the list.
  • In your username row, you will find field named "blockeduntil" and this field contains 10 digits value (e.g. 1116602445)
  • Edit the field, and set the value to "0" (zero).
  • Exit from phpMyAdmin, and you are done.

Best regards,

-zi  Smiley

WARNING: Before doing any manual database work, please backup your database, especially the table you are working with.
« Last Edit: 18-Mar-2008, 01:25 PM by rthrash »

#2: 20-May-2005, 11:04 AM

Coding Team

sottwell
Posts: 12,261

WWW
It's been suggested before that it's a good idea to make sure to create a second admin user right away, just for this sort of problem.
How MODx Works
Log in to an Evo Manager username guest, password guestuser.

#3: 20-May-2005, 11:54 AM

zeth
Posts: 19

WWW
If you don't have phpMyadmin, or want to do it from the MySQL commandline, do the following:

1. mysql -u username -p
2. use yourModxDatabaseName;
3. UPDATE modx_user_attributes SET blockeduntil=0 WHERE id=1;
Johnny Chadda
http://johnny.chadda.se
"This is a UNIX virus. Please remove all your files and copy this message to friends."

#4: 20-May-2005, 01:02 PM

Administrator

zi
MODx Special Forces /
Posts: 3,688

May Peace Be On You

WWW
Than you very much Sottwell and zeth !! Smiley for your suggestions.

Best regards,

-zi Smiley

#5: 20-May-2005, 01:38 PM

Emeritus
xwisdom
Posts: 1,732

What if we should add a forget (or reset) password feature to the manager? Maybe something like the one used with weblogins. It would send a new password to the user's email that would require activation
xWisdom
www.xwisdomhtml.com
The fear of the Lord is the beginning of wisdom:
MODx Co-Founder - Create and do more with less.

#6: 21-May-2005, 02:11 AM

Administrator

zi
MODx Special Forces /
Posts: 3,688

May Peace Be On You

WWW
Quote from: xwisdom
What if we should add a forget (or reset) password feature to the manager? Maybe something like the one used with weblogins. It would send a new password to the user's email that would require activation


PERFECT !!!  Cool

Regards,

-zi Smiley

#7: 29-Dec-2005, 08:56 AM

Emeritus
Djamoer
Posts: 1,495

No one can limit a man other than the man himself.

WWW
should we do this as a snippet right away, would you mind reporting it to the feature/bug report? Maybe some developer able to do it, or maybe us can do it too. Maybe we need to ask ryan, whether he wants this to be added as a feature request or not.

What I have in mind is, having a forgot password link, and when the user click on it, and it will request for both username and email address, then it will set the blockeduntil into random number, and send both password and this number to the admin email address, if both username and email is matched.

Then in the email, it will give a link to forgot password special page, which required admin name, password and this number to confirm the submission, if they're all right, it will reset the value.

How's that sounds?
« Last Edit: 29-Dec-2005, 01:42 PM by wendy »

#8: 27-Jan-2006, 08:21 AM

blogplus
Posts: 30

During the installation both head and papers becomes full of crows feet.

1. When logging into MODx manager session first time it's not really clear to me which login?   ...the mysql-login or the admin login?

2. Can I redo the login-setting via myPHPadmin? (maybe up/low case confusion here)

#9: 27-Jan-2006, 08:33 AM

Emeritus
Djamoer
Posts: 1,495

No one can limit a man other than the man himself.

WWW
It's better if you have access to phpMyAdmin, then do it from there, instead of reinstalling everything again. But if you're insisting to re-install it. then find an instalation folder on your MODx download, and re-upload that folder to your MODx remote folder. Then you need to remove config.inc.php file on your "manager/include" folder. After you're done with that, browse your site again, then it will prompt you with a new setup screen.

You might want to choose differen table prefix, if you haven't delete all the tables created during the first installation.

#10: 27-Jan-2006, 08:38 AM

blogplus
Posts: 30

It's better if you have access to phpMyAdmin, then do it from there, instead of reinstalling everything again.

What you suggest?
The MODx-login should be the mySQL-login... right!? 

So, then I can create a new all preference user with a new login? (and delete the non operational afterwards)   Undecided

#11: 27-Jan-2006, 09:06 AM

Foundation

rthrash
Posts: 11,575

WWW
MySQL user/pass is really not and probably should not be the same as your default Admin user. Or it could be, that's for you to decide.

We definitely need a password resetter for the manager. Should not be a snippet, but a modification to the manager/includes/accesscontrol.inc.php file I think. Probably should be logged, if it hasn't already. Should be able to use the same logic pointing at different tables as the webuser login code.
MODx is a content management framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Please help us help you when asking for assistance and read the wiki. Searching the forums from the top level helps, too.
Ryan Thrash
MODx Co-Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.

#12: 27-Jan-2006, 09:10 AM

blogplus
Posts: 30

I restart from delete...  Tongue

#13: 27-Jan-2006, 09:12 AM

Emeritus
Djamoer
Posts: 1,495

No one can limit a man other than the man himself.

WWW
lol, that will work as well.

As Ryan suggested, don't you use your mysql username and pass. It's adviseable to have them separated. This username and pass for admin is for you to be able to login to the manager part. As far as username and pass for MySql, that's for the system to be able to get into the database.

Hope that clear.

#14: 17-Mar-2006, 06:32 PM

unclemeat
Posts: 22

I love MODx!

Just wondering if this will work if I forgot the admin password - will the phpMyAdmin fix let you reset the password or just give you more or unlimited number of login attempts.

Thanx

#15: 18-Mar-2006, 04:28 AM

Coding Team

sottwell
Posts: 12,261

WWW
To manually reset the password, use phpMyAdmin to browse the 'manager_users' table, edit the admin user's row, replace the encoded password with your new one, and choose "MD5" from the Function dropdown for that field.
How MODx Works
Log in to an Evo Manager username guest, password guestuser.

#16: 11-Jul-2006, 06:17 PM

Colin
Posts: 213

I love MODx!

This is hacking me off!

I forgot that I had changed the password, and I've locked myself out. I find it strange that I must go into the database to get back in. The problem I now have is that the field is already set to "0", but I'm definitely locked out!? This is the only user, so I'm not looking at another ID, this is definitely ID #1. - What am I missing?

Thanks.

#17: 11-Jul-2006, 06:19 PM

Foundation

rthrash
Posts: 11,575

WWW
blocked until
MODx is a content management framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Please help us help you when asking for assistance and read the wiki. Searching the forums from the top level helps, too.
Ryan Thrash
MODx Co-Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.

#18: 11-Jul-2006, 06:24 PM

Colin
Posts: 213

I love MODx!

blocked until


Yeah, I know!

It displays "0", and this is definitely ID #1, and not the defaults! Huh

#19: 11-Jul-2006, 06:30 PM

Foundation

rthrash
Posts: 11,575

WWW
There's two blocking related fields. Blocked and blocked_until, or something like that. And keep in mind that web users and manger users are different tables.You have to get them both reset.
MODx is a content management framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Please help us help you when asking for assistance and read the wiki. Searching the forums from the top level helps, too.
Ryan Thrash
MODx Co-Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.

#20: 11-Jul-2006, 06:58 PM

Colin
Posts: 213

I love MODx!

I'm still confused. I confess I have zero knowledge of databases, but still, Zi's instructions appear to only take me to the default values; there is no option for selecting an ID.

I instead selected it from the right side, and managed to get the ID #1 account:



Now, I've gone back again to the same place (above), and there is now a time code!? I have no idea of what's going on?



* Untitled-4.jpg (46.24 KB, 2048x768 - viewed 2747 times.)
« Last Edit: 11-Jul-2006, 07:10 PM by Colin »
Pages: [1] 2 3   Go Up
0 Members and 3 Guests are viewing this topic.