Okay, with that spun off, we can mark this one "committed".
Unfortunately, since I made some changes to other parts of the code in order to accommodate this script, it can't be easily backported to earlier versions of Mahara.
So if you want a Mahara password-reset script that will work in 15.04 or earlier, I suggest using the one I attached to this bug: https://bugs.launchpad.net/mahara/+bug/1396564/+attachment/4277368/+files/pwreset.php
Okay, with that spun off, we can mark this one "committed".
Unfortunately, since I made some changes to other parts of the code in order to accommodate this script, it can't be easily backported to earlier versions of Mahara.
So if you want a Mahara password-reset script that will work in 15.04 or earlier, I suggest using the one I attached to this bug: https:/ /bugs.launchpad .net/mahara/ +bug/1396564/ +attachment/ 4277368/ +files/ pwreset. php