plainblack.com
Username Password
search
Bookmark and Share

Login script - set user profile data

This login script will set profile data for the user logging in. This script is called by the runOnLogin configuration setting. For example, you can use this script to set the user alias on login.

  1. Copy the doLogin.pl script to /data/WebGUI/sbin
  2. Add the following line to your config file:

 /data/WebGUI/sbin/doLogin.pl --configFile=dev.localhost.localdomain.conf --user=^FormParam(username); --param 'alias'=^FormParam(alias);

    3. Alter the login template to include a new field:

 <tr>
    <td class="formDescription" valign="top">Alias</td>
 <td><input id="alias_formId" name="alias" value="" size="8" maxlength="255" type="text" /></td>
 </tr>

You can alter multiple user profile fields by using multiple param options.

 

Happy Hacking!
William

----
Knowmad Technologies
http://www.knowmad.com

System Requirements

Developed for WebGUI 7.4

Comments
2arjan: "
Hi William,

For what purpose do you use this youself?

Kind regards,

Arjan. 
"
2knowmad: "
Hi Arjan,

We needed this to allow a client who runs a call center to change the phone extension when a user logs in rather than having the user go to preferences everytime and change it. They are a large center and employees do not sit at the same extension from day-to-day.

This information is then used to populate the InOutBoard. This has been a useful solution for them.

 

William 

----
Knowmad Technologies
http://www.knowmad.com
"
DownloaddoLogin_pl.txt doLogin_pl.txt
LinksKnowmad Technologies
No Support Offered
Statistics Downloads: 534
Views: 4164
Rating: 2
Updated: 9/5/2008
Keywords miscellaneous utility
NavigationMore from Knowmad Technologies
Back to the Bazaar
© 2018 Plain Black Corporation | All Rights Reserved