"Use emails for login" still shows username field on the registration page
Permalink 1 user found helpful
We have a client that wants to simplify the login page so we've checked "Use emails for login" in the public registration settings.
I've temporarily turned off our custom registration single page but even the default c5 registration page still shows the "Username" field.
Both the default and our custom single page contain:
Has anyone else encountered this with a 5.6.0.2 - and does anyone know how to remedy the situation?
Cheers
Ben
I've temporarily turned off our custom registration single page but even the default c5 registration page still shows the "Username" field.
Both the default and our custom single page contain:
Has anyone else encountered this with a 5.6.0.2 - and does anyone know how to remedy the situation?
Cheers
Ben
Did you figure out how to get that working?
Actually, I had to get a developer look at it. I'll take a look in git and see what the issue was for you.
Hmm, it looks like the developer overode the register.php controller file with his own.
Try creating a file called register.php and putting this code into it - then place into the top-level /controllers/register.php
Also, here is my final registration.php single page just incase they work together (just remove all the bootstrap form styling if you don't need it - place into the top-level: /single_pages/register.php
This all works for me on a 5.6.0.2 site so see how you go.
Try creating a file called register.php and putting this code into it - then place into the top-level /controllers/register.php
<?php defined('C5_EXECUTE') or die("Access Denied."); class RegisterController extends Controller { public $helpers = array('form', 'html'); public function __construct() { if(!ENABLE_REGISTRATION) { $this->render("/page_not_found"); } parent::__construct(); Loader::model('user_attributes'); $u = new User(); $this->set('u', $u); if (USER_REGISTRATION_WITH_EMAIL_ADDRESS) { $this->set('displayUserName', false); } else {
Viewing 15 lines of 236 lines. View entire code block.
Also, here is my final registration.php single page just incase they work together (just remove all the bootstrap form styling if you don't need it - place into the top-level: /single_pages/register.php
<?php defined('C5_EXECUTE') or die("Access Denied."); ?> <!-- HIGHLIGHT USERNAME FIELD ON PAGE LOAD ________________________________________________________________________________________________ --> <script type="text/javascript"> $(function() { $("input[name=uName]").focus(); }); </script> <!-- VALIDATION - Moved from view.php because it casued duplicate validation messages during checkout ________________________________________________________________________________________________ --> <?php // error validation logic if (isset($error) && $error != '') { ?> <?php if ($error instanceof Exception) { $_error[] = $error->getMessage();
Viewing 15 lines of 128 lines. View entire code block.
This all works for me on a 5.6.0.2 site so see how you go.
Thank you. Also, in my continued search, I found this thread which worked for me.
http://www.concrete5.org/community/forums/customizing_c5/removing-u...
http://www.concrete5.org/community/forums/customizing_c5/removing-u...