Skip to content

Instantly share code, notes, and snippets.

@mav2287
Created August 16, 2021 15:35
Show Gist options
  • Save mav2287/59d5587c7efabdbb105b739c4bc27cb5 to your computer and use it in GitHub Desktop.
Save mav2287/59d5587c7efabdbb105b739c4bc27cb5 to your computer and use it in GitHub Desktop.
This gist will generate a reset password for
<?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