Jump to content
  • 0

How do we restrict the Registration Username to be by Email Address Only ?


turner2f

Question

Is there a way restrict the "Login Username" to be ONLY by Email Address ?

We only want people to register their email address as their username .

=========

Or would it be as easy as just UN-commenting the code from within the " signup.pdt " file

If yes, which folder(s) would the " signup.pdt " file(s)    be in ?

And which lines of code should we UN-comment ?

 

=========

Look forward to your reply.

Link to comment
Share on other sites

12 answers to this question

Recommended Posts

  • 0
10 minutes ago, turner2f said:

Is there a way restrict the "Login Username" to be ONLY by Email Address ?

We only want people to register their email address as their username .

=========

Or would it be as easy as just UN-commenting the code from within the " signup.pdt " file

If yes, which folder would the " signup.pdt " file be in ?

And which lines of code should we UN-comment ?

 

=========

Look forward to your reply.

 

Link to comment
Share on other sites

  • 0

Not really.

 

It's called " maybe-not-using-the-correct-combination-of-keywords-for-what-you-are-looking-for " .

==========

 

But if you do not want to graciously assist in the future, that is fine too.

==========

 

Just try not to be so quick-witted, sarcastic, petulant,  cantankerous, and judgmental of other people.

There is no need for that on this forum, and none of us on this forum appreciate it.

 

We just tolerate it, just to be nice.

 

Nothing more to say here.

 

Thanks.

 

Link to comment
Share on other sites

  • 0

We tried doing the following suggested modification found at...

https://www.blesta.com/forums/index.php?/topic/5303-how-i-force-email-address-only-at-registration-time/#comment-38959


But it did not work for what we need to do.

============

On the Registration page, how do we make this disappear ?

We want clients to ONLY register using their Email address.

 

register_only_with_email_address.jpg

Link to comment
Share on other sites

  • 0

I don't have an example for you, but if you hide this and someone tries to sign up using the same username for an account that already exists they will be unable to register and either have to select a different email address, or login. We have some customers who have multiple accounts for legitimate reasons, so we wouldn't want to restrict this.

A feature request has been made for a setting to force email address as username, so it's something we're considering implementing system wide.

The approach I would take is assign a class to the div for the form element, and in CSS set it to display: none;

Link to comment
Share on other sites

  • 0

@Paul

 

Ok.

Since this is a new launch of the system, and we already manually added the "existing" accounts and clients to the system...

...what I was meaning to say was to "force" new users to register with an email address.

=============

1) - I am in the process of trying to find the specific div for the form element to apply the CSS to, but currently cannot find it.

Do you happen to know off-hand ?

 

Link to comment
Share on other sites

  • 0

Half-way there.
 

/*This gets rid of the optional radio button on the Registration page for Signing up with a Username */

#username_type_username{
  display: none !important;
  }



1) - BUT it does not get rid of the label that says, " Specify a username ".

For now, we had to make changes within plugins/order/language/en_us/signup.php to get rid of the label.

But would much rather use CSS .

 

Any suggestions ?

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...