Username Support - Login | Register | Checkout - by Diglin

  • Popularity Score 2742 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

Fix for error message "Username already exist"

2013-06-04 09:13:06
  • Version number: 2.0.4
  • 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

Fix for error message "Username already exist" when editing customer information

Fix wrong Observer file merging due to git

2013-06-01 12:06:13
  • Version number: 2.0.3
  • 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


Bug fixes and improvements

2013-05-24 20:57:19
  • Version number: 2.0.2
  • 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

- NEW - support username when a customer wants to retrieve his forgotten password thanks to the "Forgotten Password" form
- NEW - support username into the template of the persistent module
- NEW - Uninstall properly this module thanks to the MageTrashApp module (included) System > Configuration > Advanced > MageTrashApp


2013-05-24 20:55:57
  • Version number: 2.0.1
  • 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.

Magento Connect 1.0

Magento Connect 1.0

removed - nothing to dowload


2013-05-24 20:52:41
  • Version number: 2.0.1
  • 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.

Magento Connect 2.0

Magento Connect 2.0

removed - nothing to dowload

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_18, h_6CST
  • 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 3 out of 5 by from OK, but we had Problems We use is together with the extension "Reduced Checkout" So i don't know if our problem is an compatibility Problem or not. We have Magento and Username Extension 2.0.3. We got an error message: Username already exists when we try to place an order. We need to insert the following code in the file: app/code/community/Diglin/Username/Model/Form.php after the if block (if (! $customerId) {) if (! $customerId && Mage::getSingleton('customer/session')->isLoggedIn()) { $customerId = Mage::getSingleton('customer/session') ->getCustomer() ->getId(); } Now its working fine. Another Problem is the setup script generates Usernames. But we have generatet E-Mailadresses for old customers who dont have email Adresses. This generated emailadresses a nearly the same. So the generation of usernames don't guarante that there are unique. So we get an error for dublicatet username and need to delete all customers an reimport them with an own username.
Date published: 2013-06-03
Rated 3 out of 5 by from WMD Login check Thanks for this extensions. But I have a problem in admin panel. When I want to change settings WMD Login Check it give an errors. Fatal error: Call to a member function toOptionArray() on a non-object in /home/sgtdecor/public_html/bayi/app/code/core/Mage/Adminhtml/Block/System/Config/Form.php on line 399
Date published: 2013-05-10
Rated 5 out of 5 by from Great! Great add-on for my magento very easy for installation and works stable. Just one question. I have also installed MagPleasure's guest book add-on by which customers can post threads directly on the website. It will also display guests' na#es Since every guest now has a userna#e, I am wondering if only userna#es while not their real na#es shown? It seems the following command is used for display customer's na#e in guest book add-on /app/design/frontend/default/template/guestbook/comments/form#phtm <div class="comment-form-field"> <label title="<?php echo $this->__#'Na#e'# ?>" for="na#e_field"<?php if #$this->htmlEscape#$this->getFormData##->getNa#e## ? $this->getFormData##->getNa#e## : $this->getCustomerNa#e####: ?> st#le="display: none;"<?php endif; ?>> <?php echo $this->__#'Na#e'# ?> <span class="mp-required"><?php echo $this->__#"#required#"#; ?></span> </label> <div class="comment-form-input"> <input type="text" na#e="na#e" id="na#e_field" title="<?php echo $this->__#'Na#e'# ?>" class="required-entry" value="<?php echo $this->htmlEscape#$this->getFormData##->getName## ? $this->getFormData##->getName## : $this->getCustomerName### ?>" /> </div> </div>
Date published: 2013-04-02
Rated out of 5 by from Under: System &gt; Configuration &gt; Diglin &gt; Username I get a "404 Page Not Found" when trying to set options. Magento ver.
Date published: 2012-09-11
Rated out of 5 by from Hello from Germany nice extension but it did not work together with Market Ready Germany. Error: Emailadress is not correct We can not login if Market Ready Germany is installed. Otherwise we can. Did you have a solution for us? Regards Christian
Date published: 2012-08-29
Rated out of 5 by from Hello Sir, Thanks a lot for your quick help. Sir, my requirement is I want to add custom field Mobile Number in Registration, Login and Billing Pages. So I installed your extension and i renamed Username label to Mobile Number. for validation I set 1)Input Validation : Digits only 2)max no. : 11 3)min no. :10 Upto this everything is fine but sir problem is validation text displaying like: "Username" length must be equal or greater than 10 characters. But instead of Username I want to show "Mobile Number" length must be equal or greater than 10 Digits. Actually i want to show everywhere "Mobile Number" instead of "Username" in Backend and also in Frontend. Please sir i need your kind help...Waiting for your reply..
Date published: 2012-08-07
Rated out of 5 by from hello sir, Thanks a lot for your extension...it is great.. I installed ur extension..but i want to accept mobile number instead of Username so i change label from Username to Mobile number... I m facing problem in validation because validation errors still showing Username label i want change these errors as per my requirement. Where i will find it or how i can do this...please help me in this regard.
Date published: 2012-08-07
Rated out of 5 by from So far it works in 1.7..... Just can't edit the min length as the admin menu does not work. Any help would be great as I only want 4 char long
Date published: 2012-07-11
Rated out of 5 by from I installed this extension on Magento 1.6.2. I imported my customers successfully with all usernames, and a lot of user use their email as username. However, when I tried to check out, at Billing Address section, there is a red *required field above continue, when I press continue, there is a window pop up, "Username is invalid! Only letters, digits and '_-' values are accepted." Please let me know how I can fix this. Thanks.
Date published: 2012-07-04
Rated out of 5 by from Hi, Now that I have left a number of posts I thought I would actually write a review. I was desperate for username integration in magento because I integrate my store heavily with Joomla, which is username based. I came across diglin username and am very happy with the way it seemlessely integrates into Magento as if it was part of core. The developer has done a stellar job and must be commended for his efforts especially when offering such a great extension free of charge. It's quite rare to find. Also for those of you that would like to add the username variable to new account emails use when adding a new transaction email template.
Date published: 2012-06-04
  • y_2017, m_2, d_18, h_4
  • bvseo_bulk, prod_bvrr, vn_bulk_0.0
  • cp_2, bvpage2n
  • 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.