|
#1
|
|||
|
|||
|
Hi all It seems i thought i know what my login and password was but i can remember so i checked the phpadmin DB and found the login but password is all numbers ect about 20 and i copyed them to the admin login but still no joy and i keep getting emails to me saying login attempt failed??
any ideas?? Craig Last edited by 365giveaway; 02-04-2008 at 06:16 PM. |
|
#2
|
|||
|
|||
|
The password is saved as a md5 hash. It is not possible the reconstruct the original password.
Instead go to your MySQL admin tool (eg. phpMyAdmin) and use this SQL Query: Code:
update ost_staff set passwd = md5(yournewpassword) where username='admin';
|
|
#3
|
|||
|
|||
|
Did you really expect to find your password plain text in the DB? Passwords should always be encrypted, just like they are in this case.
Anyway, what you can do is set the password in the db to: 04ca3c2a1ee24aa29541a0de2a822455 and then try to login with your username and adermin as a password. Edit: torusturtle was a little faster and has a good solution as well. |
|
#4
|
|||
|
|||
|
Thanks for help and no i didnt intend on finding actual password but i guess at least i know where to check if the problem just was not too sure which section
![]() Cheers for help though Just a point to make it would be really Good if there was a "FORGOT password" in admin as in many other scripts. and also i was not sure it blocked me out for so long as in a few shopping cart scripts i use ![]() thanks any way |
|
#5
|
|||
|
|||
|
HI I really appriciate your help and i tried all of them did the sql as said and got error:
Code:
#1054 - Unknown column 'yournewpassword' in 'field list' i used ecactly this Code:
update ost_staff set passwd = md5(yournewpassword) where username='admin';
Last edited by 365giveaway; 02-04-2008 at 07:42 PM. |
|
#6
|
|||
|
|||
|
Use this:
Quote:
So when you login, use the first account you made and login with the password admin. If that doesn't work try this: Quote:
Username: admin Password: admin Once you are able to login, I suggest to change your password to something else. Last edited by Corey; 02-05-2008 at 03:55 AM. |
|
#7
|
|||
|
|||
|
Quote:
where do we type that??? |
|
#8
|
|||
|
|||
|
I assume you want to know where you can type the sql query? This can be entered in phpMyAdmin, or you can also create a little php script that executes this code.
__________________
Ask not what osTicket community can do for you - ask what you can do for osTicket community |
|
#9
|
|||
|
|||
|
Quote:
I just did a reinstall It was faster !!! It was a clean install anyway Thanks, Joe |
|
#10
|
|||
|
|||
|
Ok, first of all, get phpmyadmin or MySQL Administrator, you can do sql entries with either.
Secondly... the sql code torusturtle gave does work, you just have to change it slightly with MySQL Administrator, I don't know about phpmyadmin as I haven't tried it. Code:
update dbname.ost_staff set passwd = md5("yournewpassword") where username='admin';
Thanks torusturtle, I should have known it was just an md5 hashing of the password but sometimes programmers throw in a few twists when it comes to encrypting passwords for php databases. You saved me a lot of time and saved me from a headache. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|