Skip to content
Snippets Groups Projects
Commit 3ca0f593 authored by Prasad's avatar Prasad
Browse files

Removed oldpassword check when admin sets newpassword

parent fcce8c2f
Branches
Tags
No related merge requests found
......@@ -883,7 +883,7 @@ class Users_Record_Model extends Vtiger_Record_Model {
$moduleName = "Users";
$currentUserModel = static::getCurrentUserModel();
if (empty($oldPassword) || empty($newpassword) || empty($forUserId)) {
if (empty($newpassword) || empty($forUserId)) {
$response['message'] = vtranslate('ERROR_CHANGE_USERNAME', $moduleName);
return $response;
}
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment