[pmwiki-users] How to set username field required for user login...

Sheru Thakuri sheru at sussol.net
Tue Oct 21 22:53:19 CDT 2008

Dear Sir/Madam,
Pmwiki is great. Thank you so much for this work.
I am using DefaultPasswords for enitire site.

In config.php, I have used following form for user login.

/* ----------------------------------------------- User login 
added_________ */  
 " <div class='forimg'>
     <form name='authform' action='{$_SERVER['REQUEST_URI']}' 
 <div class='uppertext'>*Password Required</div> 
        <div class='uppertd'>Name:&nbsp;<input tabindex='1' type='text' 
name='authpw' value='' /></div>     
       <div class='lowertd'> Password: <input tabindex='1' 
type='password' name='authpw' value='' /></div><br>
        <input type='submit' value='LogIn' class='logIn' 
        <script language='javascript'><!--
          document.authform.authpw.focus() //--></script></div>", 
 /* ----------------------------------------------- User login 
END_________ */    

1.) Now problem is, I am not being able to make username field 
2.) If correct password is entered, with leaving username field blank, 
it successfully authenticates. 

How could I make Name field compulsory for userlogin?
Could you please help me on this?

Kathmadu, Nepal

More information about the pmwiki-users mailing list