Kayako logo
Developers & Code Interested in customizing your Kayako products? Discuss modifications and develop your own mods with the community.

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  (#1) Old
logicway Offline
Member
 
Posts: 62
Join Date: Jul 2006
Generate password on manual user insert by staff - 24-08-2006, 08:25 AM

Just found this on http://bugs.kayako.net/?do=details&id=1268
Quote:
The normal process for our support staff when a customer calls in:

1) Search for the user's email address in manage users
2) Create an account for the user if one doesn't exist so they can fill in the custom fields we've created
3) Create a new ticket for that user

This all works great except for the fact that the technician has to type in the password for the user. Please allow the technician to leave the passwords blank and generate a password by performing the following code changes to modules/core/staff_users.php (Revision 1.12).

Search for the following line. You should find it on line 613

if (trim($_POST["fullname"]) == "" || trim($_POST["email"]) == "" || trim($_POST["password"]) == "" || trim($_POST["passwordconfirm"]) == "" || !checkCustomFieldContent(CUSTOMFIELD_USER))

Replace the above line with the following:

if (trim($_POST["fullname"]) == "" || trim($_POST["email"]) == "" || !checkCustomFieldContent(CUSTOMFIELD_USER))

Search for the following line. You should find it on line 623.

$userid = insertUser(true, $_POST["email"], $_POST["password"], $_POST["usergroupid"], LOGINAPI_DEFAULT, 0, $_POST["fullname"], 1, 0, false, 1, false, false, iif($_POST["ismanager"]=="1", true, false));

Replace the above line with the following:

if (trim($_POST["password"]) == "")
{
$password = substr(buildHash(),0, 8);
}
else
{
$password = trim($_POST["password"]);
}

$userid = insertUser(true, $_POST["email"], $password, $_POST["usergroupid"], LOGINAPI_DEFAULT, 0, $_POST["fullname"], 1, 0, false, 1, false, false, iif($_POST["ismanager"]=="1", true, false));
I have tried this, and it works really great. Passwords are generated if you leave it empty. Hope Kayako puts this into the upcoming versions.

I would be nice if the staff also gets to see the generated password. Couldn't figure that out, yet.
   
Reply With Quote
  (#2) Old
itechwest Offline
Member
 
Posts: 53
Join Date: Aug 2006
Location: Midland, TX
24-08-2006, 12:51 PM

I am implementing this, is there a way to make required fields not be required in the staff area?


Shane Bell
President
ITechWest
www.itechwest.com
support.itechwest.com
Live US Tech Support
Help Desk Provider www.helpdeskhosting.net coming soon

Affiliates wanted, Click Here for more info.
   
Reply With Quote
Reply

Tags
generate, insert, manual, password, staff

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Invalid Username or Password with AD slarson SupportSuite, eSupport and LiveResponse 15 13-05-2008 08:59 AM
Please share User Manual for Staff & Support Center sureshkumar.mr SupportSuite, eSupport and LiveResponse 16 08-01-2007 08:21 AM
Rave: Staff Knowledge base search and user side Intrepid_Soul SupportSuite, eSupport and LiveResponse 1 11-11-2006 03:38 PM



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46