Created
August 16, 2021 15:35
-
-
Save mav2287/59d5587c7efabdbb105b739c4bc27cb5 to your computer and use it in GitHub Desktop.
This gist will generate a reset password for
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Put in your usersname found in the "vtiger_users" table under the "username" column | |
$user_name = ""; | |
// Set your TEMPORARY password. You NEED to reset your password after you reset it | |
$user_password = "password"; | |
// return the approiate stamtent | |
echo "Run the following SQL query to reset your password: \n"; | |
echo "\"UPDATE vtiger_users SET user_password='".crypt($user_password, substr($user_name, 0, 2))."',crypt_type=''WHERE user_name='".$user_name."'\""; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment