A page in your DokuWiki was added or changed. Here are the details: Date : 2015/10/08 10:30 Browser : Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0 IP-Address : 193.248.50.71 Hostname : LStLambert-656-1-262-71.w193-248.abo.wanadoo.fr Old Revision: --- New Revision: http://ltb-project.org/wiki/documentation/self-service-password/0.9/config_posthook Edit Summary: created User : coudot
====== Post Hook configuration ====== You can write a script that will be called it the password was changed. This allow for example to update a file or a database on password change. This script must be executable by the user running Apache. It will take 3 arguments: * ''$login'' : the user login * ''$newpassword'' : the new password * ''$oldpassword'' : the old password <note tip>The old password is only provided on standard password change, not on password reset</note> To declare this script, use: <file php> $posthook = "/usr/share/self-service-password/posthook.sh"; </file> Here is an example of a simple posthook script: <file bash> #!/bin/bash LOGIN=$1 NEWPASSWORD=$2 OLDPASSWORD=$3 echo `date` >> /tmp/posthook.log echo "$LOGIN / $NEWPASSWORD / $OLDPASSWORD" >> /tmp/posthook.log </file> -- This mail was generated by DokuWiki at http://ltb-project.org/wiki/
_______________________________________________ ltb-changes mailing list [email protected] http://lists.ltb-project.org/listinfo/ltb-changes
