SSL Labs ScoreSecurityHeaders.io ScoreHSTS Preloaded

Log in to participate

There is no cost to join RicheyWeb, and membership is a requirement to submit bug reports and participate in the support forums.

× Extension Discussions

Authentication - Email

More
9 months 3 weeks ago #3888 by michael
Replied by michael on topic Authentication - Email
J4 does not support it currently - but it's still in Alpha, so that may change.

Please Log in or Create an account to join the conversation.

More
7 months 2 weeks ago #4031 by alexey@gnevyshev.ru

bcnx wrote: What this plugin misses is an adaptation of the registration form...


Hello!
My simple js solution :)
jQuery(function($) {

if ($('.registration form').length > 0) {
    // при загрузке скрываем поле Логин и подтв. пароля
    $('#jform_username, #jform_password2').parents('.control-group').css('display', 'none'); 
    
    // при вводе email вводим в логин то же самое
    $('.registration input.validate-email').on('input', function() {
        $('#jform_username').val($(this).val());
    });
    
    // при вводе пароля вводим в подтв. то же самое
    $('#jform_password1').on('input', function() {
        $('#jform_password2').val($(this).val());
    });
}

});

Code for custom.js or user.js from your template.

Please Log in or Create an account to join the conversation.

More
7 months 2 weeks ago #4033 by michael
Replied by michael on topic Authentication - Email
I will check that out.

Thank you!

Please Log in or Create an account to join the conversation.

More
4 weeks 19 hours ago #4271 by joomleb
Replied by joomleb on topic Authentication - Email
Hi Michael,
on a new site project I'm looking to enter the email as username during login. Instead to change validation. It wouldn't have been simpler:

Register
- hide the username field with a display: none CSS
- saving ("before saving" during creation and editing), fill in the "username" field with the "email" field value. I'm not a developer and cannot help here. Please, What do you think about ? Maybe, Do you have an idea / suggestion to test it ?

Login
- with a simple language override changing the "Username" label with "Email" (the same for emails and alerts). As you documented for your plugin.

Please Log in or Create an account to join the conversation.

More
4 weeks 18 hours ago #4272 by michael
Replied by michael on topic Authentication - Email
I had actually done something similar for a customer (I'll have to look to find the code)

Basically, it created a random string for the username, and then once the user was saved - it changed the username to "userXXXX" (where XXXX was the user ID). It worked great.

I'll dig up that code and make a separate plugin to work with this one.

Please Log in or Create an account to join the conversation.

More
4 weeks 11 hours ago - 3 weeks 6 days ago #4273 by joomleb
Replied by joomleb on topic Authentication - Email
Hi Michael,
in first of all really many thanks for your answer, too appreciated!

Then, my English is not so good. So, I'm not sure I explained well what I mean, because you wrote:
"...it created a random string for the username, and then once the user was saved..."

I would see the thing a little bit more simples:
I mean, just on Joomla Registration page form during Creation / Editing, to live auto populate / auto fill in the "username" field with the value of the "email" (or) "email2" while typing and before saving > something like this - let see the simple example - (I'm using the Helix Ultimate template that permit to add "custom JavaScript", but as I wrote I'm not a developer maybe the solution is too simple and obvious, but I really don't now)
- hiding the "username" field that can be done also through Custom CSS...

Here are other two small code suggestions that, maybe, can help:
- Auto fill username in a form - May be can be used to add code in the template registration page ? (In my case I'm using Helix Ultimate)
- Ajax auto populate from field - May be can be used to add Custom JavaScript to the template ?
Last edit: 3 weeks 6 days ago by joomleb.

Please Log in or Create an account to join the conversation.

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Powered by Kunena Forum