I believe this code is complete.  So far I have it
working on my site and I see no problems or bugs.  If
you use this please let me know of any problems.  This
is also posted on
http://bugz.mostly-harmless.ca/show_bug.cgi?id=113. 
To unlock an account, go to UserPreferences->Protected
and uncheck Locked then save preferences.  

-------------- next part --------------
A non-text attachment was scrubbed...
Name: file.diff
Type: application/octet-stream
Size: 8139 bytes
Desc: file.diff
Url : http://lists.kuro5hin.org/pipermail/scoop-dev/attachments/20040817/5a37192b/file.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: UnlockPatch.sql
Type: application/octet-stream
Size: 1567 bytes
Desc: UnlockPatch.sql
Url : http://lists.kuro5hin.org/pipermail/scoop-dev/attachments/20040817/5a37192b/UnlockPatch.obj