bernhard Posted November 24, 2015 Share Posted November 24, 2015 i created a sublime snippet for that so when i need it i just have to type resetadminpassword and i'm done <snippet> <content><![CDATA[ \$admin = \$users->get(${1:41}); \$admin->of(false); \$pw = '${2:admin}'; \$admin->pass = \$pw; \$admin->save(); echo 'username: ' . \$admin->name . '<br>'; echo 'password: ' . \$pw; die(); ]]></content> <!-- Optional: Set a tabTrigger to define how to trigger the snippet --> <tabTrigger>resetadminpassword</tabTrigger> --> <!-- Optional: Set a scope to limit where the snippet will trigger --> <!-- <scope>.php</scope> --> </snippet> just save it under C:\...\Data\Packages\User\php\reset-admin-password.sublime-snippet and use TAB to navigate from userid to password Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now