Major issue here. I cannot log in with my admin account today. I have 2 other user accounts doing the same thing yet everyone else is fine. Is there a way through PHPmyadmin that I can reset the password or create another admin user? I’m really stuck.
Thanks for any help.
PS - I’m a newbie when it comes to this.
How do I create a new user in step 1 if I can’t log into my application to do so? I can log into PHPmyadmin right now and that is all.
I also don’t know what you mean by my “new user hashed password”.
Thank you.
i dont know how your app creates new user - registration? in shell? some other way? maybe you have some account you know password to?
I also don’t know what you mean by my “new user hashed password”.
if you have typical database you will have users
table and password
field in it, usually passwords are hashed so noone will know what it is cause its suppose to be secret to everyone but user.
Okay, you are referring to the encrypted string in the password field. I’m on board now. Do you know what kind of encryption is used? Maybe I can find an encrypting tool that can create the hash out of my password and I can paste that in there?
you can try to use cake console:
in shell bin/cake console
and there
echo (new Cake\Auth\DefaultPasswordHasher())->hash('test')
[root@intranet cake]# echo (new Cake\Auth\DefaultPasswordHasher())->hash(‘test’)
-bash: syntax error near unexpected token `new’
This is what I get when I run it.
your php in cli is probably older version, try to put it temporary in index.php or some page you can see just to copy result
or you can try to see if you can change php version in cli (shell)