php - Symfony sfGuardPlugin password recovery -


i supporting site built on symfony. there problems regarding kind of "admin page".

while not knowing whole thing reading logs , comparing recent backups think able fix issue (some developer removed route, did not fix template).

i not have admin password site, have root access server , super access database (in case postgres).

can me how create myself account without knowing current passwords?

disclaimer: not have knowledge php's oop interface not programmer, sysadmin.

edit:

symfony version 1.0.16 

try logging server , changing symfony project's root directory. there's "symfony" script/link there (the details depend on os , how symfony's set up; might able run ./symfony rather needing php symfony). run see whether basics working:

php symfony 

if works, should list of possible tasks can do. if you're using sfguardplugin, should see tasks guard:create-user.

to more information on task, try like:

php symfony guard:create-user 

but basically, assuming modern symfony installation , plugin, try like:

php symfony guard:create-user --env=prod newusername newpassword 

(the --env=prod option creates user in production environment, want.)

if there super-user-only tasks want do, try doing this:

php symfony guard:promote newusername 

that give new user super-admin privileges.

you'll find guard:change-password task reset password given user.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -