I need some insight to find the source code for the inline mod authentication form. The modification I created uses loginname rather than username to perform authentication. It is working fine except for when using the moderation tools. vB creates the form and passes it the username as shown below. Where is the code that is building this form?
PHP Code:
<form class="block vbform" method="post" action="login.php?do=login" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, 0)">
<input type="hidden" name="do" value="login" />
<input type="hidden" name="vb_login_md5password" value="" />
<input type="hidden" name="vb_login_md5password_utf" value="" />
<input type="hidden" name="s" value="" />
<input type="hidden" name="securitytoken" value="1287422497-484bba698b627cde1530b1e9a57d2d108e82be31" />
<input type="hidden" name="postvars" value="4f67c5b57dab95b91b3bcebf1796b1c5480b1d86a:11:{s:10:"deletetype";s:1:"1";s:12:"deletereason";s:0:"";s:1:"s";s:0:"";s:13:"securitytoken";s:51:"1287422432-7481a105c3d2899d61824116f6db6dfbc5120165";s:9:"threadids";s:2:"30";s:2:"do";s:15:"dodeletethreads";s:3:"url";s:32:"/forums/forumdisplay.php?14-Fun1";s:4:"ajax";N;s:5:"tlist";N;s:5:"plist";N;s:8:"postvars";N;}" />
<input type="hidden" name="url" value="/forums/inlinemod.php?do=dodeletethreads&threadids=30" />
<input type="hidden" name="vb_login_username" value="bigrover" />
<input type="hidden" name="logintype" value="modcplogin" />
<input type="hidden" name="inlineverify" value="1" />
<div class="blockbody formcontrols">
<div class="section">
<div class="blockrow">
<label for="navbar_password" class="smallfont">Password:</label>
<input type="password" class="primary textbox" name="vb_login_password" id="navbar_password" tabindex="200" />
<p class="description">Please login again to verify the legitimacy of this request.</p>
</div>
</div>
</div>
<div class="blockfoot actionbuttons">
<div class="group">
<input type="submit" class="button" value="Log in" tabindex="201" accesskey="s" />
</div>
</div>
</form>
Comment