Topic: Can't login to 'Admin' section

It's really annoying. I can't update my site since it won't let me in.
How can I find my password? I might have forgotten it. Is it stored somewhere? I tried to inject my own site but still no result. Please help.

Thanks.

MyFenix Administrator & WolfCMS Plugin - Theme designer

Thumbs up

2

Re: Can't login to 'Admin' section

@MyFenix - I assume you have direct access to the database tables? On that assumption:

1. Using phpMyAdmin (or whatever), go to the user_permission table, and find a user_id that has its permission_id set to 1; make a note of that user_id.

2. Go back to the user table, and find that user_id. You will also see the matching username — and that is what you use to login with.

3. For that user, copy/paste the following value:

d0be2dc421be4fcd0172e5afceea3970e2f3d940

into the password field. That is the “sha1” encoding for “apple”.

4. Go back to your login screen, and use that username, and the password “apple”. That should get you into the system with an id that has full admin rights.

5. You can then change the password to something of your choice from the user area of the backend.

Hope that works!!

Re: Can't login to 'Admin' section

Thanks, it works. smile

MyFenix Administrator & WolfCMS Plugin - Theme designer

Thumbs up

Re: Can't login to 'Admin' section

Thank you!  This worked for me as well!

Thumbs up

Re: Can't login to 'Admin' section

David I would go with a banana over an apple.

250e77f12a5ab6972a0895d290c4792f0a326ea8

Re: Can't login to 'Admin' section

Is sha1 the best encryption PHP has to offer?

Re: Can't login to 'Admin' section

No... Which is why I've defined a 0.7.0 "Security Hardening" release in the roadmap wink

Wolf CMS founder and lead developer
Please always check the Support forums and Wiki before asking. (My Ohloh account.)
Like Wolf CMS? Consider making a financial contribution.

Re: Can't login to 'Admin' section

mvdkleijn wrote:

No... Which is why I've defined a 0.7.0 "Security Hardening" release in the roadmap wink

Sounds like a good idea.
But what encryption method will you use then?

Re: Can't login to 'Admin' section

Not decided yet smile

Wolf CMS founder and lead developer
Please always check the Support forums and Wiki before asking. (My Ohloh account.)
Like Wolf CMS? Consider making a financial contribution.

10

Re: Can't login to 'Admin' section

David wrote:

@MyFenix - I assume you have direct access to the database tables? On that assumption:

1. Using phpMyAdmin (or whatever), go to the user_permission table, and find a user_id that has its permission_id set to 1; make a note of that user_id.

2. Go back to the user table, and find that user_id. You will also see the matching username — and that is what you use to login with.

3. For that user, copy/paste the following value:

d0be2dc421be4fcd0172e5afceea3970e2f3d940

into the password field. That is the “sha1” encoding for “apple”.

4. Go back to your login screen, and use that username, and the password “apple”. That should get you into the system with an id that has full admin rights.

5. You can then change the password to something of your choice from the user area of the backend.

Hope that works!!

a real life saver! smile

Thumbs up

Re: Can't login to 'Admin' section

Just a small update for those still watching this thread:

Starting from Wolf 0.7.0, the passwords in the DB will be:

1. Salted using a generated salt.
2. Hashed using Sha256

(salted passwords always seem tastier than unsalted ones... wink )

Wolf CMS founder and lead developer
Please always check the Support forums and Wiki before asking. (My Ohloh account.)
Like Wolf CMS? Consider making a financial contribution.

12

Re: Can't login to 'Admin' section

So I'm having the same issue the OP had. Mine is on a fresh install, though. The username and password the installation process gives me does nothing. I can log in fine on a local host (using MAMP) with the exact same Wolf installation. hmm

Any thoughts? Any help would be greatly appreciated.

Thumbs up

Re: Can't login to 'Admin' section

We'd need to know more about your installation... that is works on your MAMP means nothing if your server has a setup issue. (for example)

Can you post the following information:

- Wolf CMS version
- PHP version
- DB version
- OS type
- Did you turn on DEBUG?
- Did you check the content of your DB? Were the tables and content created by the install process?
- Do you get a message that your username/password is incorrect when trying to login?
- Do you get any error at all?

Just as an initial hint, an often occurring problem seems to be that the server administrator did not configure sessions properly.

Wolf CMS founder and lead developer
Please always check the Support forums and Wiki before asking. (My Ohloh account.)
Like Wolf CMS? Consider making a financial contribution.

14

Re: Can't login to 'Admin' section

mvdkleijn wrote:

We'd need to know more about your installation... that is works on your MAMP means nothing if your server has a setup issue. (for example)

Can you post the following information:

- Wolf CMS version
- PHP version
- DB version
- OS type
- Did you turn on DEBUG?
- Did you check the content of your DB? Were the tables and content created by the install process?
- Do you get a message that your username/password is incorrect when trying to login?
- Do you get any error at all?

Just as an initial hint, an often occurring problem seems to be that the server administrator did not configure sessions properly.

Hah, sorry. I just didn't know what you wanted and I didn't want to post everything and my dog's name, so... tongue

Local server

Wolf version: Actually I'm not completely sure. XD The changelog goes up to 0.7 but the website says "0.6.0a"
PHP version: 5.3.2
DB: MySQL 5.1.44
OS: OSX 10.6.4

This one logs in perfectly fine and works like a charm.

Public server

Wolf version: The same as the local version, whatever that may be.
PHP version: 5.2.2
DB: MySQL 5.0.77
OS: Debian

When I tried to log on, it just returns to the login screen. No error message or anything. It does the same thing when I enter a username and password that I know is wrong. It's definitely writing the database tables during the installation. I even tried exporting the working server's database and importing it into the other one, but I still couldn't log in (using the working server's name and password).

The only thing that didn't work in the installation was the clean URLs, which didn't work in the local install.

And what do you mean the server administrator didn't configure sessions properly? tongue

Thumbs up

Re: Can't login to 'Admin' section

If you're not getting a red popup error message when trying to login with a bogus username, you probably have a problem with your sessions. Please see this thread/post on details.

If you're not the one responsible for configuring your live server, ask your administrator to "set the session save path" or at least have them take a look at the link I posted. smile

Wolf CMS founder and lead developer
Please always check the Support forums and Wiki before asking. (My Ohloh account.)
Like Wolf CMS? Consider making a financial contribution.

16

Re: Can't login to 'Admin' section

You, my friend, have saved my day. smile Thank you TONS.

Apparently my server (FatCow) uses a totally outdated php.ini file.

I'm new to this sort of thing; I'm just a poor little designer trying to get by. smile

Again, thanks a TON. *high five*

EDIT: Whuh-oh, now I can't modify or add users on the live server, but I can locally. Is this related or should I start a new thread?

EDIT #2: Maybe I should include the slightest of details, eh? When I try and add a user it just says "User not added!" Silly Wolf CMS, of course not. But why?

Last edited by Emu (2010-07-08 22:53)

Thumbs up

Re: Can't login to 'Admin' section

One more thing to check.

create test.php file (in notepad for example) and content:

<?php
   phpinfo();
   ?>

Upload with ftp in your server and you should get all php info including php session path.

In my case I deleted "tmp" folder from my ftp root folder what was php session path(I tought it was just a pointless temp folder generated by host until i set my page up). I wasn't informed nowhere, that this folder is neccessary for php sessions.

Is there any simple code to detect correct php session path? Maybe include in next release.

What permissions should I use on that folder? CHMOD 700?

Thumbs up