I am trying to use the email as the username in all the login and register
snippets but it is not working...
It does not accept /recognize the username. All the emails work fine,
is just the Username that does not want to cooperate...
These are my calls:
The login call:
The login tpl (just changed the label from username to email):
<div class="loginForm">
<div class="loginLogin">
<form class="loginLoginForm" action="[[~[[*id]]]]" method="post">
<label class="loginUsernameLabel">Email</label>
<input class="loginUsername" type="text" name="username" />
<label class="loginPasswordLabel">[[%login.password]]</label>
<input class="loginPassword" type="password" name="password" />
<input class="returnUrl" type="hidden" name="returnUrl" value="[[+request_uri]]" />
<input class="loginLoginValue" type="hidden" name="service" value="login" />
<span class="loginLoginButton"><input type="submit" name="Login" value="[[+actionMsg]]" /></span>
</form>
</div>
</div>
<div class="loginMessage">[[+errors]]</div>
The Register call and tpl (I just ask for email and password to register, and set
&usernameField=`email` to set the username equal to the email):
[[!Register?
&submitVar=`registerbtn`
&submittedResourceId=`43`
&usernameField=`email`
&usergroups=`Users`
&activationResourceId=`42`
&activationEmailTpl=`actEmailTpl`
&activationEmailSubject=`Thanks for registering to MODxperience!`
&preHooks=`recaptcha`
]]
<div class="register">
<div class="registerMessage">[[+error.message]]</div>
<form class="form" action="[[~[[*id]]]]" method="post">
<input type="hidden" name="nospam:blank" value="" />
<span class="fieldError">[[+error.email]]</span>
<label for="email">[[%register.email? &namespace=`login` &topic=`register`]]</label><br />
<input type="text" name="email:email" id="email" value="[[+email]]" /><br /><br />
<span class="fieldError">[[+error.password]]</span>
<label for="password">[[%register.password? &namespace=`login` &topic=`register`]]</label><br />
<input type="password" name="password:required:minLength=6" id="password" value="[[+password]]" /><br /><br />
<span class="fieldError">[[+error.password_confirm]]</span>
<label for="password_confirm">[[%register.password_confirm? &namespace=`login` &topic=`register`]]</label><br />
<input type="password" name="password_confirm:password_confirm=`password`" id="password_confirm" value="[[+password_confirm]]" /><br /><br />
<br class="clear" />
[[+register.recaptcha_html]]
[[+error.recaptcha]]<br />
<div class="form-buttons">
<input type="submit" name="registerbtn" value="Register" />
</div>
</form>
</div>
It is the only thing that I need to sort out before launching my site...
TIA for the help!!