* Change behavior of logins using the temporary e-mailed password (as stored
[lhc/web/wiklou.git] / includes / templates / Userlogin.php
index 83ef492..953fbd4 100644 (file)
@@ -78,7 +78,7 @@ class UserloginTemplate extends QuickTemplate {
                <tr>
                        <td></td>
                        <td align='left' style="white-space:nowrap">
-                               <input type='submit' name="wpLoginattempt" id="wpLoginattempt" tabindex="5" value="<?php $this->msg('login') ?>" />&nbsp;<?php if( $this->data['useemail'] ) { ?><input type='submit' name="wpMailmypassword" id="wpMailmypassword"
+                               <input type='submit' name="wpLoginattempt" id="wpLoginattempt" tabindex="5" value="<?php $this->msg('login') ?>" />&nbsp;<?php if( $this->data['useemail'] && $this->data['canreset']) { ?><input type='submit' name="wpMailmypassword" id="wpMailmypassword"
                                        tabindex="6"
                                                                        value="<?php $this->msg('mailmypassword') ?>" />
                                <?php } ?>