Username Support - Login | Register | Checkout - by Diglin

  • Popularity Score 2748 Popularity Score

    Popularity ScoreReferrals to Site/Downloads

    0 0 1+ 1+ 250+ 250+ 1000+ 1000+ 10000+ 10000+

Create and login to an account thanks to a username AND email address everywhere.
Compatible with:
This extension is currently unavailable on Magento Connect. Please contact the developer.

You will be re-directed to the developer's website to complete your purchase.

You must be registered and logged in to get extension key.
In order to get this extension, you must be logged in to the Magento Community. Click here to login or register.

Magento Connect 2.0

Magento Connect 2.0

Previous Next

Username Support - Login | Register | Checkout - by Diglin

Do not hesitate to fork this project, share your changes or have an issue, visit the GitHub repository

I don't receive any notification if you post a review. So contact me directly instead if you have any issue. Thanks.


  • Login with a username and/or email, it can be done from frontend during checkout or getting access to the customer account
  • Save a username from frontend (register account or checkout process) or from backend by editing a customer account
  • Check that the username doesn't already exists
  • Allow you to deactivate temporary customer account from Customer Management page (bonus functionality from version > Magento 1.4.x). The user will be blocked if the option in the customer backend is set to no.
  • The default templates override some customer and checkout views to adapt display for login pages, checkout process and account edition in frontend. If you have a customized template, please check the layout file username.xml and compare with your template to use or adapt to your situation.
  • When you have already customers in your system and you do a first install of this plugin, a username will be generated for each customer based on a part of his email and a unique id. (e.g. email address is "developer@localhost.com" -> username is "developer1235467")
  • Configurable options to define what kind of username to support: only letters, only digits, both or default (digits, letters and special characters '-_')
  • Configurable options to set the maximum and minium string length
  • Display Username of each customer in the Customer Management Grid
  • Allow or not the customer to edit the username in My Account in frontend
  • Compatible and tested with Magento version >=1.4.2 until 1.8.x
  • Support username when a customer wants to retrieve his forgotten password thanks to the "Forgotten Password" form
  • Support username into the template of the persistent module
  • Support Custom Regex validation (Select the Input validation 'custom' from the configuration page)


  • Please, configure the module go to the backend and follow the menu System > Configuration > Diglin > Username
  • You can put the username into your email template, you can put the following string {{var customer.username}} in the email templates: account_new.html and account_new_confirmation.html
  • You can also add into your email templates (for the customer emails), the following code to display the username: {{var customer.username}}
  • If you have a 404 error page, try to login/logout and go back to the configuration page. Or save again the Administrator role in System > Permissions > Role
  • IMPORTANT NOTE: check if you want to have the customer account global or per website, see in System > Configuration > Customers > Customer Configuration > Account Sharing Options

    If set to "Per website", the username will be unique per website

    If set to "Global", the username will be unique for the whole website

    It's important to know if you create account from the backend, check which Website where you want to save the account


If you have an important quantity of customers in your database, please try this module on a development environment first. All old customers will get a random username. The process may be long during the installation.


The module install some data and changes in your database. Deinstalling the module will make some trouble cause of those data. You will need to remove those information by following the procedure below

Via MageTrashApp

An additional module called MageTrashApp has been installed with this module to help you to uninstall this module in a clean way. If it is not installed, please install it from [MageTrashApp](https://github.com/magento-hackathon/MageTrashApp)
If it is installed, go to your backend menu System > Configuration > Advanced > MageTrashApp, then click on the tab "Extension Installed", select the drop down option "Uninstall" of the module Diglin_Username and press "Save Config" button to uninstall
If you use this module, you don't need to make any queries in your database as explained below in case of manually uninstallation.

Via Magento Connect or manually

  • If you used Magento Connect, you may use the deinstall process of the Magento Connect Backend page view of your Magento installation.
  • Otherwise remove the files following the hierarchy of the folders of this repository
  • Then get access to your database and do the followings queries:
    Do the following sql query in your database after to have done a backup, please check the table name with your database:
`DELETE FROM eav_attribute WHERE attribute_code LIKE '%username%';` `ALTER TABLE sales_flat_quote DROP COLUMN 'customer_username';` `ALTER TABLE sales_flat_order DROP COLUMN 'customer_username';`


* Sylvain Rayé
* http://www.diglin.com/
* @diglin_
* Follow me on github!

M1 Extension Versions

Update for Magento 1.7.0

2012-07-19 21:51:34
  • Version number: 1.5.0
  • Stability: Stable
  • Compatibility: 1.4.2, 1.5, 1.6, 1.6.1,, 1.7
You must be registered and logged in to get extension key.
You must choose from Magento Connect Version or 2.0.
Learn more

Magento Connect 1.0 change

Add updated templates for Magento 1.7.0

Activation account function fixed

2012-04-01 23:37:43
  • Version number: 1.4.0
  • Stability: Stable
  • Compatibility: 1.4,, 1.4.2, 1.5, 1.6, 1.6.1,
You must be registered and logged in to get extension key.
You must choose from Magento Connect Version or 2.0.
Learn more

Magento Connect 1.0 change

Please, be aware, this update is only from Magento version 1.4.2 available.
Activate / Deactivate function fixed. Function available in the account information in the customer edit page. (Is Active: Yes/No)

New configuration options

2012-02-21 22:35:04
  • Version number: 1.3.0
  • Stability: Stable
  • Compatibility: 1.4.2, 1.5, 1.6, 1.6.1,
You must be registered and logged in to get extension key.
You must choose from Magento Connect Version or 2.0.
Learn more

Magento Connect 1.0 change

New configurable options: display username in Manage Customer Grid, allow customer to edit or not username in frontend My Account, define maximum and minimum length of username for the forms, define what kind of validation desired (letters, digits, both or both " _-)

Fix a block template definition

2012-02-05 21:05:31
  • Version number: 1.2.1
  • Stability: Stable
  • Compatibility: 1.4.2, 1.5, 1.6, 1.6.1
You must be registered and logged in to get extension key.
You must choose from Magento Connect Version or 2.0.
Learn more

Magento Connect 1.0 change

Fix a block template definition

1.2.0 Improvements and bug fixes

2012-01-24 17:05:54
  • Version number: 1.2.0
  • Stability: Stable
  • Compatibility: 1.4.2, 1.5, 1.6, 1.6.1
You must be registered and logged in to get extension key.
You must choose from Magento Connect Version or 2.0.
Learn more

Magento Connect 1.0 change

- Version 1.2.0: fix problem with case sensitive OS, limit the number of characters possible (now it's between 6 and 30 letters), allow only some characters, try to provide compatibility update for users who had the old Jfusion_Username module, generate a username for old customers who don't have it, based on email address and a random id, improve the german translation, tested on 1.6.2 and 1.5.1
- Version 1.1.0: change the module name from Jfusion_Customer to Diglin_Username, fix bugs with checkout frontend and backend and with old customers
- Version 1.0.2 - fix a bug with the installation
- Version 1.0.1 - fix bug in sql query during installation on prefixed tables, add german translation, do package for Magento version prior to 1.5 and version 1.5.x
- Version 1.0.0 - stable version

Auto increment user_id - digits only

Hi :) Thx for this module, it works as i should - i´m using it to add member id´s to existing and new members - but i´m missing a auto-increment feature. So that if the last created member is 000123 - it would auto set the next to 000123 (if not already used) Is this som,thing you could implement in future updates ?
Asked by: mabf
Hi, You can follow this link https://github.com/diglin/Diglin_Username/issues/14 I created a request to add this enhancement. I cannot promise to do it soon because I have some other priorities at this time, however I planned to check that the extension works on Magento 1.9 (in fact I started but I wont finish at this time), so at the same time I could add this feature. Regards Sylvain
Answered by: diglin
Date published: 2014-08-16

Custom Input Validation

Hi, I'm having real issue with customising a regex for the option in the backend "Input Validation: Custom PCRE Regex". I want a username to be acceptable if it's an email address, but also if it is not. The username must start with a letter or number and be allowed to contain these symbols @-_. The username must not allow whitespaces anywhere. I have this: /^[a-zA-Z0-9](.*)*$/ but it allows white-spaces. I've tried /^[a-zA-Z0-9][^/S]$/ and other variations with no joy. I've been trying other regex's to achieve the validation I require, but I just can't get it working. I hope someone can help. Thanks
Asked by: stevebsheilds
Hi Diglin, Thank you for your answer, although I realise now that my Regex from a previous answer this Regex should do what I want: /^[a-zA-Z0-9][a-zA-Z0-9-.@]*$/ The real problem I feel is a conflict with another plugin called Manage Customer Attributes: http://www.magentocommerce.com/magento-connect/manage-customer-attributes.html This plugin does not have the ability to provide a custom regex; and I believe also uses the same attribute of "username". So it's a problem with "Manage Customer Attributes" plugin not being able to use custom regex. At the same time this is conflicting with the "Diglin username" plugin due to the MCA plugin as it seems to override. Thanks
Answered by: stevebsheilds
Date published: 2016-02-20

Onestepcheckout Problem

Hello i read in Review there is a conflict in override class with onestepcheckout, can you tell me how to fix it? Regards
Asked by: APServer
HI Please ask your technical question on our github page. Thanks
Answered by: diglin
Date published: 2017-01-07

How can i change "Username" label at front end and back end ?

Hi, I want to change the label of "Username" to trade id, At the front end i found the template file to change but i am unable to find file of admin panel to change "Username" label. kindly tell me Thanks
Asked by: hasmimeraj
Hi, You can do it by editing or creating if not exist the translate.csv file which should be located to app/design/frontend/YOURPACKAGE/default/locale/YOURLOCALE/translate.csv Add in this file the following: "Diglin_Username::Email/Username:","My text here" "Diglin_Username::Email Address/Username","My text here" And so on. Check the basic locale file to see which strings are available for this module at app/locale/en_US/Diglin_Username.csv Do not change the basic locale otherwise you will loose your changes if you update the module Regards Diglin
Answered by: diglin
Date published: 2014-02-22

Support for SOAP v2?

I want to create a customer username via SOAP V2, is that possible?
Asked by: rocandio
Hi, No he doesn't support SOAP v2 as I should overwrite the wsdl and api2 xml based on the core code. I don't want to adventure myself with trouble when people install the extension. However you can hire me to implement it for your installation. It's around 3 or 4 hours of works with test included. Cheers Sylvain
Answered by: diglin
Date published: 2014-11-22

Can't login in 1.8.1

Hi, Sylvain After I installed it on Magento 1.8.1, I can't login any more, either username or email. Please have a check. Thanks.
Asked by: czbok
Hey! The login form is missing a new form hidden element: form_key. If you know how, edit the files for the username forms: yourtheme/template/username (if files are not there, copy them from base/default/username). These instrucitons can help you out: http://blueclawecommerce.co.uk/blog/fix-customer-cannot-login-to-magento-1-8-1/ . Best regards!
Answered by: navotjer
Date published: 2014-03-15

Unable to Create Customer

After installing the script I'm unable to create a customer. On the frontend I get "Cannot save the customer." On the backend I get "An error occurred while saving the customer." Any ideas how to fix it?
Asked by: gordon_holland
Hi as I told you via twitter please send your issue on github: https://github.com/diglin/Diglin_Username/issues or if you are not a developer, via PM at this address: http://www.magentocommerce.com/boards/member/messages/pm/87027/ It's easier to help you. It's faster and more convenient. I think you have a conflict with an other extension. It happened several times. Please send me via PM the list of other extensions you installed. Thanks
Answered by: diglin
Date published: 2014-06-14

Will you be adding 1.8.1 support?

As per one of the other questions, on 1.8.1 it seems to install fine, but you then cannot log in as a customer using either their email address or their username. It just redirects back to the login screen without any error message.
Asked by: AlexMTaylor13
Hi Yes I will do it. I'm just busy at this time. I will work on it in the next month. Thanks for your patience
Answered by: diglin
Date published: 2014-03-22

Possibility to create multiple accounts per one email

Hello! Is it possible to create multiple accounts per one email? For example, whole family uses webshop, and children don't have own emails yet, and use father's/mother's email for registration.
Asked by: dmitryrublev
Hi, Unfortunately it's not possible. Neither Magento, neither my extension allows it. Email address must be unique in system. It needs lots of changes to allow it and implementing a deep access control. Sorry Sylvain
Answered by: diglin
Date published: 2014-08-09

can do any process in login time.

I am using (ver. registration is good.... but in login time... it cant show any error or message.? also down a email login.. after use it... m using in localhost
Asked by: deverma706
hi, About your first issue, I will investigate. Please see the issue report on Github to get a feedback of the fix if needed For your second issue, I don't understand what is your problem. Could you describe it a little bit more? Thanks
Answered by: diglin
Date published: 2014-03-01
  • y_2017, m_2, d_28, h_20CST
  • bvseo_bulk, prod_bvqa, vn_bulk_0.0
  • cp_1, bvpage1
  • co_hasquestionsanswers, tq_12
  • loc_en_US, sid_9579, prod, sort_[SortEntry(order=LOCALE, direction=DESCENDING), SortEntry(order=FEATURED, direction=DESCENDING), SortEntry(order=NUM_ANSWERS, direction=DESCENDING)]
  • clientName_magento
Get Help

Support for This Extension

The best place to start if you need help with a specific extension is to contact the developer. All Magento developers have both a contact email and a support email listed.

Magento Platform Support

If you need support for a Magento platform, there are different options for support depending on which Magento platform you are using. Below are links for specific platforms.


About the Developer

This extension was developed by and is supported by diglin

Username Support - Login | Register | Checkout - by Diglin is rated 2.0 out of 5 by 27.
Rated 4 out of 5 by from Invalid username and password error I install this module but error "Invalid username and password error" is coming when i am login with username. I also installed customer attribute manager. Is customer attribute manager conflicted with Diglin username module. Please suggest.
Date published: 2016-03-03
Rated 5 out of 5 by from Works in but ... Great Work :-) But is this a bug in app/code/community/Diglin/Username/Model/Form.php? Check validate public function validateData start at Line 91 $inputValidation = Mage::getStoreConfig('username/general/input_validation'); $useInputValidation = ($inputValidation == 'default' || $inputValidation == 'custom') ? true : false; switch ($useInputValidation)? Value is true or false not default or ... switch ($useInputValidation) {//change to $inputValidation, and it works case 'default': $validate = '/^[\w-]*$/'; break; case 'custom': $validate = Mage::getStoreConfig('username/general/input_validation_custom'); break; } same in Line 107 if ($useInputValidation == 'custom') { //change to $inputValidation if i don't change, user can input all signs, register, and login. No Error Message. Big problem in checkout/onepage/ on Step 2 can't go on, only an empty Messagebox (or nothing), if default values in Setup. ...but now it works. Thanks for the extension!
Date published: 2015-03-02
Rated 4 out of 5 by from Very Useful - Works in 1.9 This is working great for me in CE 1.9. It doesn't work with multi-store setup, however. I needed to make some customizations...but it works great. Thanks for the extension!
Date published: 2014-09-19
Rated 1 out of 5 by from Not working Not working... Can't login with the username it create at start and can't change username in the backin it just redirect me too frontpage without any error
Date published: 2014-07-03
Rated 5 out of 5 by from Good Product I am very happy with the product , it does what it says ..!!!!!
Date published: 2014-04-23
Rated 5 out of 5 by from Works as intended This extension was exactly what I was looking for. It works as intended and with a little coding it was working for custom modules as well. Support got back to me a a timely manner too.
Date published: 2014-01-29
Rated 5 out of 5 by from Works like charm Wonderful extension for the most of shops. Little problem with Username and OnePageCheckout. Both overwrite the same class, but with the support i was able to fix this.
Date published: 2013-10-29
Rated 5 out of 5 by from JUST AS DESCRIBED! Works like a charm. Needs some adjustments to make it work with the API.
Date published: 2013-09-07
Rated 4 out of 5 by from Allow username spaces hello! Thank you very much fr the extension! It is great! I am wonder how could I allow spaces in username. Actually I have users that have usernames with spaces that don't let to buy, and displays "Username is invalid! Only letters, digits and '_-' values are accepted." Please let me know how I can fix this. Thanks.
Date published: 2013-07-26
Rated 4 out of 5 by from Allow username spaces Thank you for these extensions! It is great!! I installed your extension but now I have a issue with usernames. I have customers that have spaces in their usernames. I have Diglin 2.0.1 version and Magento So, they can log in normally, but when they want to buy something in the checkout they click place order button, and displays "Username is invalid! Only letters, digits and '_-' values are accepted." I need to allow spaces in the usernames. Please let me know how I can fix this. Thanks.
Date published: 2013-07-26
  • y_2017, m_2, d_28, h_17
  • bvseo_bulk, prod_bvrr, vn_bulk_0.0
  • cp_1, bvpage1
  • co_hasreviews, tv_0, tr_27
  • loc_en_US, sid_9579, prod, sort_[SortEntry(order=FEATURED, direction=DESCENDING), SortEntry(order=SUBMISSION_TIME, direction=DESCENDING)]
  • clientName_magento

In order to upload extension, you must be logged in to the Magento Community. Click here to login or register.



* Required Fields

Close window

Forgot Your Password?

Please enter your email below and we'll send you a new password.

* Required Fields

Close window


To upload extension you must be logged in.

* Required Fields

Close window

You are using an outdated browser

We built Magento Connect using the latest techniques and technologies.
This makes Magento Connect faster and easier to use.
Unfortunately, your browser doesn't support those technologies.
Use the links below to download a new browser or upgrade your existing browser.