Moving the login form
Permalink 1 user found helpful
I am building a site where the login to the dashboard will be on the front page.
Is this as simple as moving the login code to the front page, or do I have to "turn off " the current single page login to do this?
Is this as simple as moving the login code to the front page, or do I have to "turn off " the current single page login to do this?
<form method="post" action="<?=$this->url('/login', 'do_login')?>"> <label for="uName"> <?php if(USER_REGISTRATION_WITH_EMAIL_ADDRESS == true): ?> <?php echo t('Email Address') ?> <?php else: ?> <?php t('Username') ?> <?php endif; ?> </label> <input type="text" name="uName" id="uName" /> <label for="uPassword"><?php echo t('Password') ?></label> <input type="password" name="uPassword" id="uPassword" /> <?php if(OpenIDAuth::isEnabled()): ?> <label for="uOpenID"><?php t('Login with OpenID') ?>:</label> <input type="text" name="uOpenID" id="uOpenID" /> <?php endif; ?>
Viewing 15 lines of 22 lines. View entire code block.
This is basically the form. You can strip out even more of it if you don't need oath and email signin. It just posts to /login/do_login
You can basically stick a form anywhere you want as long as it has the uName and uPassword and post to /login/do_login
Like for most sites this would work fine
<form method="post" action="<?php $this->url('/login', 'do_login') ?>"> <label>Username</label> <input type="text" name="uName" ?> <label>Password</label> <input type="text" name="uPassword" /> <input type="submit" value="Sign In" /> </form>
You can have as many logins as you want and I would leave the default one.
Is there a pure HTML way of doing this?
Just learning Concrete5 and not wanting to edit system files if I don't have to.
thanks,
Chris
Just learning Concrete5 and not wanting to edit system files if I don't have to.
thanks,
Chris
http://www.concrete5.org/marketplace/addons/login_block/...