No such method when attempting to delete user account until making this patch:
112c112
< unless( $user->checkPasswd( $password ) ) {
---
> unless( $user->checkPassword( $password ) ) {
this was fixed in SVN:9251; which version are you reporting this bug against?
twikibuilder@server:~/twiki/TWikiRelease04x00/lib/TWiki/UI$ svn diff -r 9250:9251 Manage.pm
Index: Manage.pm
===================================================================
--- Manage.pm (revision 9250)
+++ Manage.pm (revision 9251)
@@ -109,7 +109,7 @@
@groups ) ] );
}
- unless( $user->checkPasswd( $password ) ) {
+ unless( $user->checkPassword( $password ) ) {
throw TWiki::OopsException( 'attention',
web => $webName,
topic => $topic,
WN
Incidentally, I am trying to delete a user account from the command line as admin using
./manage.cgi -action deleteUserAccount -user luser
and this (now) results in a wrong password message, but admin shouldn't have to know user's password to delete it?
i'm not sure about that one (but best to report it as a separate bug). how are you authenticating as an a
TWikiAdminGroup user capable of deleting an account?
WN
Sorry, I was reporting on 4.0.1, I see it fixed in 4.0.2. I was not authenticating but running from the command line and my perusal of the source and various comments and docs suggests that this automatically acquires admin privs. The docs do say that password is a required input for the deleteUserAccount action, I just don't see why it should be. It is a moot point until
http://develop.twiki.org/~develop/cgi-bin/view/Bugs/Item2056
is resolved anyway.