├── .gitignore
├── .gitmodules
├── LICENSE.txt
├── MagentoConnect
├── Diglin_Username-1.1.0.tgz
├── Diglin_Username-1.1.1.tgz
├── Diglin_Username-1.2.0.tgz
├── Diglin_Username-1.3.0.tgz
├── Diglin_Username-1.4.0.tgz
├── Diglin_Username-1.5.0.tgz
├── Diglin_Username-2.2.1.tgz
├── Diglin_Username-2.2.2.tgz
├── Diglin_Username.xml
└── images
│ ├── Username.jpg
│ ├── Username.psd
│ ├── billing.png
│ ├── createaccount.png
│ ├── login.png
│ ├── login_checkout.png
│ ├── myaccount.png
│ └── user_edit_backend.png
├── README.md
├── composer.json
├── modman
└── src
└── app
├── code
└── community
│ └── Diglin
│ └── Username
│ ├── Block
│ └── Adminhtml
│ │ └── Config
│ │ └── Source
│ │ ├── Generate.php
│ │ └── Hint.php
│ ├── Helper
│ └── Data.php
│ ├── Model
│ ├── Config
│ │ ├── Share.php
│ │ └── Source
│ │ │ └── Inputvalidation.php
│ ├── Customer.php
│ ├── Entity
│ │ ├── Customer.php
│ │ └── Setup.php
│ ├── Form.php
│ ├── Generate
│ │ └── Flag.php
│ ├── Import
│ │ └── Entity
│ │ │ └── Customer.php
│ └── Observer.php
│ ├── controllers
│ ├── AccountController.php
│ └── Adminhtml
│ │ └── Username
│ │ └── SyncController.php
│ ├── data
│ └── username_setup
│ │ └── data-install-2.0.0.php
│ ├── etc
│ ├── adminhtml.xml
│ ├── config.xml
│ ├── system.xml
│ ├── uninstall.txt
│ ├── wsdl.xml
│ └── wsi.xml
│ └── sql
│ └── username_setup
│ ├── install-2.0.0.php
│ ├── mysql4-install-1.0.0.php
│ ├── mysql4-upgrade-1.0.0-1.1.0.php
│ ├── mysql4-upgrade-1.1.0-1.2.0.php
│ ├── mysql4-upgrade-1.3.0-1.4.0.php
│ ├── mysql4-upgrade-1.4.0-2.0.0.php
│ ├── uninstall.php
│ └── upgrade-2.2.0-2.2.1.php
├── design
├── adminhtml
│ └── default
│ │ └── default
│ │ └── template
│ │ └── username
│ │ └── system
│ │ └── config
│ │ └── generate.phtml
└── frontend
│ └── base
│ └── default
│ ├── layout
│ └── username.xml
│ └── template
│ └── username
│ ├── checkout
│ └── onepage
│ │ ├── 13
│ │ └── billing.phtml
│ │ ├── 17
│ │ └── billing.phtml
│ │ ├── billing.phtml
│ │ └── login.phtml
│ ├── customer
│ ├── account
│ │ └── dashboard
│ │ │ └── info.phtml
│ └── form
│ │ ├── 13
│ │ └── register.phtml
│ │ ├── 17
│ │ └── register.phtml
│ │ ├── edit.phtml
│ │ ├── forgotpassword.phtml
│ │ ├── login.phtml
│ │ └── register.phtml
│ └── persistent
│ ├── checkout
│ └── onepage
│ │ ├── billing.phtml
│ │ └── login.phtml
│ └── customer
│ └── form
│ ├── login.phtml
│ └── register.phtml
├── etc
└── modules
│ └── Diglin_Username.xml
└── locale
├── de_DE
└── Diglin_Username.csv
├── en_GB
└── Diglin_Username.csv
├── en_US
└── Diglin_Username.csv
└── fr_FR
└── Diglin_Username.csv
/.gitignore:
--------------------------------------------------------------------------------
1 | .idea
2 | .DS_Store
3 |
--------------------------------------------------------------------------------
/.gitmodules:
--------------------------------------------------------------------------------
1 | [submodule "MageTrashApp"]
2 | path = MageTrashApp
3 | url = https://github.com/magento-hackathon/MageTrashApp
4 |
--------------------------------------------------------------------------------
/LICENSE.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diglin/Diglin_Username/667baef60f786c7711a36d8e058566f32ad14b19/LICENSE.txt
--------------------------------------------------------------------------------
/MagentoConnect/Diglin_Username-1.1.0.tgz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diglin/Diglin_Username/667baef60f786c7711a36d8e058566f32ad14b19/MagentoConnect/Diglin_Username-1.1.0.tgz
--------------------------------------------------------------------------------
/MagentoConnect/Diglin_Username-1.1.1.tgz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diglin/Diglin_Username/667baef60f786c7711a36d8e058566f32ad14b19/MagentoConnect/Diglin_Username-1.1.1.tgz
--------------------------------------------------------------------------------
/MagentoConnect/Diglin_Username-1.2.0.tgz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diglin/Diglin_Username/667baef60f786c7711a36d8e058566f32ad14b19/MagentoConnect/Diglin_Username-1.2.0.tgz
--------------------------------------------------------------------------------
/MagentoConnect/Diglin_Username-1.3.0.tgz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diglin/Diglin_Username/667baef60f786c7711a36d8e058566f32ad14b19/MagentoConnect/Diglin_Username-1.3.0.tgz
--------------------------------------------------------------------------------
/MagentoConnect/Diglin_Username-1.4.0.tgz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diglin/Diglin_Username/667baef60f786c7711a36d8e058566f32ad14b19/MagentoConnect/Diglin_Username-1.4.0.tgz
--------------------------------------------------------------------------------
/MagentoConnect/Diglin_Username-1.5.0.tgz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diglin/Diglin_Username/667baef60f786c7711a36d8e058566f32ad14b19/MagentoConnect/Diglin_Username-1.5.0.tgz
--------------------------------------------------------------------------------
/MagentoConnect/Diglin_Username-2.2.1.tgz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diglin/Diglin_Username/667baef60f786c7711a36d8e058566f32ad14b19/MagentoConnect/Diglin_Username-2.2.1.tgz
--------------------------------------------------------------------------------
/MagentoConnect/Diglin_Username-2.2.2.tgz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diglin/Diglin_Username/667baef60f786c7711a36d8e058566f32ad14b19/MagentoConnect/Diglin_Username-2.2.2.tgz
--------------------------------------------------------------------------------
/MagentoConnect/Diglin_Username.xml:
--------------------------------------------------------------------------------
1 | <_>
2 | 8g6kBx67uMfaKToj
3 | Diglin_Username
4 | community
5 |
6 | 2
7 |
8 | Create and login to an account thanks to a username AND email address.
9 | Allow to disable an account from backend. The user will be blocked if the option in the customer backend is set to no
10 | This module allows you to:
11 | 
12 | - login with a username or email address. it can be done from frontend during checkout or getting access to the customer account
13 | - Username can have letters, digits, '_-' but no other special characters
14 | - Username length is from 6 until 30 characters possible
15 | - save a username from frontend (register account or checkout process) or from backend by editing a customer account
16 | - check that the username doesn't already exists
17 | - deactivate temporary customer account from Customer Management page (bonus functionnality). The user will be blocked if the option in the customer backend is set to no.
18 | - The default template 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.
19 | 
20 | Compatible Magento version >= 1.4.2 until 1.9.1
21 | OSL v3.0
22 | http://www.opensource.org/licenses/osl-3.0.php
23 | 2.2.2
24 | stable
25 | Version 2.2.2
26 | - Fix issue with input validation (any kind of input was possible)
27 |
28 | Version 2.0.*
29 | e694fcb Add custom input validation
30 | 85a0f51 Update translations
31 | 1ca6441 Update Copyright
32 | 799fc1b [FIX] prevent to save username when it's not allowed from configuration
33 | 55ab34e make the module compatible with MAgento 1.8, change copyright, move column logic for customer grid into observer
34 | 6c49218 Merge pull request #7 from gdhnz/master
35 | bad7445 Add permission "allow everything" to adminhtml.xml to resolve admin 404 for the extension config screen under CE 1.8
36 | fa712c7 Code factoring
37 | 6c603d8 fix comment typo
38 | 5f5fe14 change to version 2.0.7
39 | 41e58bb fix bad condition test in case of not found $customerId in Form.php. Use case, checkout process with already logged in customer.
40 | b8e71c7 add submodule MageTrashApp
41 | 757a3e2 Update README.md
42 | 48244a4 add version 2.0.6
43 | e9453ff generate correctly username for old customers while installing the module
44 | f422067 Fix to the controller forgotPassword
45 | fd71c66 change version to 2.0.5
46 | 67bf362 cleanup some test
47 | adc2bb5 add fix when customer information are saved from backend, add observer fix for collection (do not know yet if it resolved hte problem of a user who contacted me about grid
48 | 1c0c07f change version number
49 | 4ab072f fix bad merging
50 | cd2bb86 Update README.md
51 | fa3f821 Update composer.json
52 | d10136e add dependency suggestion
53 | ff053ba remove todo task
54 | b300aa0 Fix a problem with sql data install with empty select query
55 | 5b179b5 add uninstall process for module MageTrashApp
56 | ce428e9 add composer.json
57 | d93cc55 merge observer
58 | 29d4c21 add condition to test if attribute username model exists before to save the config
59 | 14acf45 Update README.md
60 | 21f72b7 add missing column for sales_flat_order table
61 | 612052d improve checkout process as a guest (no complain that username is a required field when you are a guest), fix issue with install data script
62 | aafb0be split template depending on the magento version, add missing template for use cases using persisten customer feature
63 | ce9245b Fix or improve form model while saving new customer data
64 | 42444f3 Improve test if shop owner change the account sharing options
65 | 4d10edb Improve Username Module: setup is now completly rewritten for Magento 1.7, add username for forgotten password, allow now to disable the feature from configuration page, ch
66 | c6b7250 add customer ID fix depending on the context
67 | 788e656 add optionable strtolower username
68 | 49cb18d add optionable strtolower username
69 | dff09e0 Add modman and instruction to use it
70 | 2d6b6c8 Merge pull request #1 from clst/master
71 | 1d143e9 fix: weird quote characters in german language file
72 | 9cbf4a2 add: can now update is_active for existing customers
73 | dfa9cc6 Fix some bug and add a way to import is_active attribute
74 | 60c7143 Update README.md
75 | 24afad2 add gitignore and license files
76 |
77 |
78 |
79 | diglin
80 |
81 |
82 | diglin
83 |
84 |
85 | sly@diglin.com
86 |
87 |
88 | 5.2.9
89 | 6.0.0
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 | Core
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 | magelocal
123 | magecommunity
124 | mageetc
125 | magedesign
126 | magedesign
127 | magedesign
128 | magelocale
129 | magelocale
130 | magelocale
131 | magelocale
132 |
133 |
134 |
135 | Diglin/Username
136 | modules/Diglin_Username.xml
137 | adminhtml/default/default/template/username
138 | frontend/base/default/layout/username.xml
139 | frontend/base/default/template/username
140 | de_DE/Diglin_Username.csv
141 | en_GB/Diglin_Username.csv
142 | en_US/Diglin_Username.csv
143 | fr_FR/Diglin_Username.csv
144 |
145 |
146 | file
147 | dir
148 | file
149 | dir
150 | file
151 | dir
152 | file
153 | file
154 | file
155 | file
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
--------------------------------------------------------------------------------
/MagentoConnect/images/Username.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diglin/Diglin_Username/667baef60f786c7711a36d8e058566f32ad14b19/MagentoConnect/images/Username.jpg
--------------------------------------------------------------------------------
/MagentoConnect/images/Username.psd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diglin/Diglin_Username/667baef60f786c7711a36d8e058566f32ad14b19/MagentoConnect/images/Username.psd
--------------------------------------------------------------------------------
/MagentoConnect/images/billing.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diglin/Diglin_Username/667baef60f786c7711a36d8e058566f32ad14b19/MagentoConnect/images/billing.png
--------------------------------------------------------------------------------
/MagentoConnect/images/createaccount.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diglin/Diglin_Username/667baef60f786c7711a36d8e058566f32ad14b19/MagentoConnect/images/createaccount.png
--------------------------------------------------------------------------------
/MagentoConnect/images/login.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diglin/Diglin_Username/667baef60f786c7711a36d8e058566f32ad14b19/MagentoConnect/images/login.png
--------------------------------------------------------------------------------
/MagentoConnect/images/login_checkout.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diglin/Diglin_Username/667baef60f786c7711a36d8e058566f32ad14b19/MagentoConnect/images/login_checkout.png
--------------------------------------------------------------------------------
/MagentoConnect/images/myaccount.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diglin/Diglin_Username/667baef60f786c7711a36d8e058566f32ad14b19/MagentoConnect/images/myaccount.png
--------------------------------------------------------------------------------
/MagentoConnect/images/user_edit_backend.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diglin/Diglin_Username/667baef60f786c7711a36d8e058566f32ad14b19/MagentoConnect/images/user_edit_backend.png
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Diglin Username #
2 |
3 | Magento module which allows your customers to use a username and not only the email address as identifier
4 |
5 | ## Features
6 |
7 | - Compatible and tested with Magento version >=1.4.2 until 1.9.x (should work also on 1.3)
8 | - Login with a username and/or email, it can be done from frontend during checkout or getting access to the customer account
9 | - Save a username from frontend (register account or checkout process) or from backend by editing a customer account
10 | - Check that the username doesn't already exists
11 | - 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.
12 | - 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.
13 | - When you have already customers in your system and you do a first install of this plugin, a username may 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"). See the configuration page of the extension to trigger this feature
14 | - Configurable options to define what kind of username to support: only letters, only digits, both or default (digits, letters and special characters '-_') or even custom regex
15 | - Configurable options to set the maximum and minium string length
16 | - Display Username of each customer in the Customer Management Grid
17 | - Allow or not the customer to edit the username in My Account in frontend
18 | - Support username when a customer wants to retrieve his forgotten password thanks to the "Forgotten Password" form
19 | - Support username into the template of the persistent module
20 | - NEW - support Custom Regex validation (Select the Input validation 'custom' from the configuration page)
21 |
22 | ## Installation
23 |
24 | ### Via Magento Connect
25 | - You can install the current stable version via [MagentoConnect](http://www.magentocommerce.com/magento-connect/username-support-login-register-checkout-by-diglin.html)
26 |
27 | ### Via modman
28 | - Install [modman](https://github.com/colinmollenhour/modman)
29 | - Use the command from your Magento installation folder: `modman clone https://github.com/diglin/Diglin_Username.git`
30 |
31 | ### Via composer
32 | - Install [composer](http://getcomposer.org/download/)
33 | - Create a composer.json into your project like the following sample:
34 |
35 | ```json
36 | {
37 | ...
38 | "require": {
39 | "diglin/diglin_username":"*"
40 | },
41 | "repositories": [
42 | {
43 | "type": "composer",
44 | "url": "http://packages.firegento.com"
45 | }
46 | ],
47 | "extra":{
48 | "magento-root-dir": "./"
49 | }
50 | }
51 |
52 | ```
53 |
54 | - Then from your composer.json folder: `php composer.phar install` or `composer install`
55 |
56 | ### Manually
57 | - You can copy the files from the folders of this repository to the same folders of your installation
58 |
59 | ## Documentation
60 |
61 | - Please, configure the module go to the backend and follow the menu System > Configuration > Diglin > Username
62 | - 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
63 | - 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
64 |
65 | ## Important
66 |
67 | - It's important to know if you create account from the backend, check which Website where you want to save the account
68 | - Check if you want to have the customer account global or per website, see in System > Configuration > Customers > Customer Configuration > Account Sharing Options
69 | If set to "Per website", the username will be unique per each website
70 | If set to "Global", the username will be unique for the whole website
71 |
72 | ## Uninstall
73 |
74 | 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.
75 |
76 | #### Via MageTrashApp
77 |
78 | 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)
79 | 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
80 | If you use this module, you don't need to make any queries in your database as explained below in case of manually uninstallation.
81 |
82 | #### Via Magento Connect or manually
83 |
84 | - If you used Magento Connect, you may use the deinstall process of the Magento Connect Backend page view of your Magento installation.
85 | - Otherwise remove the files following the hierarchy of the folders of this repository
86 | - Then get access to your database and do the followings queries:
87 | Do the following sql query in your database after to have done a backup, please check the table name with your database:
88 |
89 | `DELETE FROM eav_attribute WHERE attribute_code LIKE '%username%';`
90 | `ALTER TABLE sales_flat_quote DROP COLUMN 'customer_username';`
91 | `ALTER TABLE sales_flat_order DROP COLUMN 'customer_username';`
92 |
93 | ## Author
94 |
95 | * Sylvain Rayé
96 | * http://www.diglin.com/
97 | * [@diglin_](https://twitter.com/diglin_)
98 | * [Follow me on github!](https://github.com/diglin)
99 |
100 | ## Change Log
101 | - 2.2.1
102 | - Generate missing username from configuration backend thanks to a button instead while installing the extension
103 | - Allow username creation from order creation for a new customer
104 | - 2.2.0
105 | - Add Custom Input validation option
106 | - 2.1.0
107 | - Magento 1.8 support
108 | - Copyright changes
109 | - Move column grid to observer
110 | - 2.0.1
111 | - add composer support
112 | - fix some sql bugs while installing
113 | - 2.0:
114 | - add support for the "forgot password" form
115 | - fix bugs with checkout as guest
116 | - implement best practices for install process
117 | - check if same username are not used in different websites when the shop owner change the configuration of the "Account Sharing Options"
118 | - add conditional templates for the persistent module
119 | - Update the license in PHP file
120 |
--------------------------------------------------------------------------------
/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name":"diglin/diglin_username",
3 | "type":"magento-module",
4 | "license":"OSL-3.0",
5 | "homepage":"https://github.com/diglin/Diglin_Username",
6 | "description":"Support username login and account register in Magento instead of only email address.",
7 | "authors":[
8 | {
9 | "name":"Sylvain Rayé",
10 | "email":"{firstname}.{lastname}@diglin.com"
11 | }
12 | ],
13 | "require":{
14 | "magento-hackathon/magento-composer-installer":"*",
15 | "magento-hackathon/hackathon_magetrashapp":"*"
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/modman:
--------------------------------------------------------------------------------
1 | @import MageTrashApp
2 | src/app/code/community/Diglin/Username app/code/community/Diglin/Username
3 | src/app/design/adminhtml/default/default/template/username app/design/adminhtml/default/default/template/username
4 | src/app/design/frontend/base/default/layout/username.xml app/design/frontend/base/default/layout/username.xml
5 | src/app/design/frontend/base/default/template/username app/design/frontend/base/default/template/username
6 | src/app/etc/modules/Diglin_Username.xml app/etc/modules/Diglin_Username.xml
7 | src/app/locale/de_DE/Diglin_Username.csv app/locale/de_DE/Diglin_Username.csv
8 | src/app/locale/en_GB/Diglin_Username.csv app/locale/en_GB/Diglin_Username.csv
9 | src/app/locale/en_US/Diglin_Username.csv app/locale/en_US/Diglin_Username.csv
10 | src/app/locale/fr_FR/Diglin_Username.csv app/locale/fr_FR/Diglin_Username.csv
11 |
--------------------------------------------------------------------------------
/src/app/code/community/Diglin/Username/Block/Adminhtml/Config/Source/Generate.php:
--------------------------------------------------------------------------------
1 |
8 | * @copyright Copyright (c) 2008-2015 Diglin GmbH - Switzerland (http://www.diglin.com)
9 | * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
10 | */
11 |
12 | /**
13 | * Class Diglin_Username_Block_Adminhtml_Config_Source_Generate
14 | */
15 | class Diglin_Username_Block_Adminhtml_Config_Source_Generate extends Mage_Adminhtml_Block_System_Config_Form_Field
16 | {
17 | /*
18 | * Set template
19 | */
20 | protected function _construct()
21 | {
22 | parent::_construct();
23 | $this->setTemplate('username/system/config/generate.phtml');
24 | }
25 |
26 | /**
27 | * Remove scope label
28 | *
29 | * @param Varien_Data_Form_Element_Abstract $element
30 | * @return string
31 | */
32 | public function render(Varien_Data_Form_Element_Abstract $element)
33 | {
34 | $element->unsScope()->unsCanUseWebsiteValue()->unsCanUseDefaultValue();
35 | return parent::render($element);
36 | }
37 |
38 | /**
39 | * Return element html
40 | *
41 | * @param Varien_Data_Form_Element_Abstract $element
42 | * @return string
43 | */
44 | protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
45 | {
46 | return $this->_toHtml();
47 | }
48 |
49 | /**
50 | * Return ajax url for synchronize button
51 | *
52 | * @return string
53 | */
54 | public function getAjaxSyncUrl()
55 | {
56 | return Mage::getSingleton('adminhtml/url')->getUrl('*/username_sync/generate');
57 | }
58 |
59 | /**
60 | * Return ajax url for synchronize button
61 | *
62 | * @return string
63 | */
64 | public function getAjaxStatusUpdateUrl()
65 | {
66 | return Mage::getSingleton('adminhtml/url')->getUrl('*/username_sync/syncstatus');
67 | }
68 |
69 | /**
70 | * Generate generate button html
71 | *
72 | * @return string
73 | */
74 | public function getButtonHtml()
75 | {
76 | $button = $this->getLayout()->createBlock('adminhtml/widget_button')
77 | ->setData(array(
78 | 'id' => 'generate_button',
79 | 'label' => $this->helper('username')->__('Generate'),
80 | 'onclick' => 'javascript:generate(); return false;'
81 | ));
82 |
83 | return $button->toHtml();
84 | }
85 | }
86 |
--------------------------------------------------------------------------------
/src/app/code/community/Diglin/Username/Block/Adminhtml/Config/Source/Hint.php:
--------------------------------------------------------------------------------
1 | '
31 | .''
32 | .' Diglin GmbH | Rütistrasse 14, 8952 Schlieren - Switzerland | support@diglin.com
';
33 |
34 | return $html . '
Diglin_Username Version: '. Mage::getConfig()->getModuleConfig('Diglin_Username')->version .' - Powered by Diglin GmbH