function _securesite_login_form in Secure Site 6
Same name and namespace in other branches
- 5 securesite.inc \_securesite_login_form()
Returns complete form for login when using the HTML form
Return value
HTML used in the Secure Site dialog when the HTML login form is in use
1 call to _securesite_login_form()
- _securesite_user_auth in ./
securesite.module - Display authentication dialog and send password reset mails
File
- ./
securesite.inc, line 14 - Support functions for the Secure Site contrib module
Code
function _securesite_login_form() {
return "\n <h1>" . t('Login') . '</h1>
<div id="login">' . variable_get('securesite_login_form', t('<p>Enter your username and password.</p>')) . (!isset($_POST['securesite_request_form']) ? theme('status_messages') : '') . '</div>
<form action="' . request_uri() . '" method="post">
<p><label>' . t('Username') . ': <input type="text" maxlength="55" class="form-text" name="edit[name]" id="edit-name" value=""></label></p>
<p><label>' . t('Password') . ': <input type="password" class="form-password" maxlength="24" name="edit[pass]" id="edit-pass" value=""></label></p>
<p><input type="hidden" name="securesite_login_form" value="1"><input type="submit" class="form-submit" name="op" value="' . t('Login') . '"></p>
</form>
';
}