Jump to content

How to reset your password + how to enable the 'forgot password' function


ryan
 Share

Recommended Posts

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>

post-2137-0-11656500-1448387515_thumb.gi

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...