(bug 10055) Populate email address and real name properties of User objects passed...
[lhc/web/wiklou.git] / includes / SpecialResetpass.php
index cde582b..3a93852 100644 (file)
@@ -1,10 +1,15 @@
 <?php
 
+/** Constructor */
 function wfSpecialResetpass( $par ) {
        $form = new PasswordResetForm();
        $form->execute( $par );
 }
 
+/**
+ * Let users recover their password.
+ * @addtogroup SpecialPage
+ */
 class PasswordResetForm extends SpecialPage {
        function __construct( $name=null, $reset=null ) {
                if( $name !== null ) {
@@ -68,7 +73,9 @@ class PasswordResetForm extends SpecialPage {
        }
        
        function showForm() {
-               global $wgOut, $wgUser, $wgLang, $wgRequest;
+               global $wgOut, $wgUser, $wgRequest;
+
+               $wgOut->disallowUserJs();
                
                $self = SpecialPage::getTitleFor( 'Resetpass' );                
                $form  =
@@ -134,7 +141,7 @@ class PasswordResetForm extends SpecialPage {
        }
        
        /**
-        * @throws PasswordError
+        * @throws PasswordError when cannot set the new password because requirements not met.
         */
        function attemptReset( $newpass, $retype ) {
                $user = User::newFromName( $this->mName );