Usually there is no login form anywhere around and I have to go to the main page and then I see the mod_login!!!You are not authorized to view this resource.
You need to login.
In order to make Joomla! meet usability standards I've changed function mosNotAuth() located in the /includes/joomla.php, please take a look and take it under consideration for future versions:
Code: Select all
function mosNotAuth() {
global $my;
echo _NOT_AUTH;
if ($my->id < 1) {
echo "<br />" . _DO_LOGIN;
/**
Modified by Douglas de Senne Machado
Used a few lines from component com_login
**/
?>
<br />
<br />
<br />
<form action="<?php echo sefRelToAbs( 'index.php?option=login' ); ?>" method="post" name="login" id="login">
<div class="componentheading">Efetue o Login</div>
<br />
<label for="username"><?php echo _USERNAME; ?>
<input name="username" id="username" type="text" class="inputbox" size="25" style="display:block" />
</label>
<label for="passwd"><?php echo _PASSWORD; ?>
<input name="passwd" id="passwd" type="password" class="inputbox" size="25" style="display:block" />
</label>
<br/>
<label style="display:block">
<input type="checkbox" name="remember" class="inputbox" value="yes" style="width:12px;height:12px" />
<?php echo _REMEMBER_ME; ?>
</label>
<a href="<?php echo sefRelToAbs( 'index.php?option=com_registration&task=lostPassword' ); ?>">
<?php echo _LOST_PASSWORD; ?>
</a>
<br />
<?php echo _NO_ACCOUNT; ?>
<a href="<?php echo sefRelToAbs( 'index.php?option=com_registration&task=register' ); ?>">
<?php echo _CREATE_ACCOUNT;?>
</a>
<br />
<br />
<input type="submit" name="submit" class="button" value="<?php echo _BUTTON_LOGIN; ?>" />
<noscript>
<?php echo _CMN_JAVASCRIPT; ?>
</noscript>
<input type="hidden" name="op2" value="login" />
</form>
<?php
}
}
Best regards,