You are here: Foswiki>Tasks Web>Item506 (20 May 2010, SvenDowideit)Edit Attach
Marking this deferred: an uncommitted patch that should be considered for Ed.

Doesn't work now: gets
Access Denied
Attention
Access check on Main.TWikiUsers failed. Action "CHANGE": access not allowed on topic.


mrjc@crack:twiki$ svn diff lib/TWiki/UI/Register.pm
Index: lib/TWiki/UI/Register.pm
===================================================================
--- lib/TWiki/UI/Register.pm    (revision 6619)
+++ lib/TWiki/UI/Register.pm    (working copy)
@@ -464,6 +464,11 @@
     foreach my $userName (@userNames) {
         $good = $good &&
           _resetUsersPassword( $session, $userName, $introduction, \$message );
+       # Ensure they are in TWikiUsers as well - this allows you to do a
+       # password reset to ensure someone is listed.
+       my $userObj = $session->{users}->findUser($userName);
+       $session->{users}->addUserToTWikiUsersTopic( $userObj,
+                                                    $session->{user} );
     }

     my $action = '';

Undeferred, post Dakar CC


this was fixed in foswiki 1.0.0

-- SvenDowideit - 20 May 2010

ItemTemplate edit

Summary Reset passwd could add missing users to TWikiUsers (non-functioning patch)
ReportedBy MartinCleaver
Codebase
SVN Range
AppliesTo Engine
Component
Priority Low
CurrentState Closed
WaitingFor
Checkins
TargetRelease major
ReleasedIn 1.0.0
Topic revision: r4 - 20 May 2010, SvenDowideit
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy