Skip to content
Snippets Groups Projects
Select Git revision
  • 2.0.3
  • 2.0.x default
  • 8.x-1.x
  • auto_username-3527591-project-update-bot-only
  • auto_username-3425886-3425886-use-drupal-core-transliteration
  • 7.x-1.x
  • 6.x-1.x
  • 5.x-1.x
  • 2.0.4
  • 2.0.2
  • 2.0.1
  • 8.x-1.7
  • 8.x-1.6
  • 8.x-1.5
  • 8.x-1.4
  • 8.x-1.3
  • 8.x-1.2
  • 7.x-1.1
  • 8.x-1.1
  • 8.x-1.0-alpha1
  • 8.x-1.0
  • 7.x-1.0-alpha2
  • 7.x-1.0-alpha1
23 results

auto_username

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    James Scott authored
    5b1ad74d
    History
    CONTENTS OF THIS FILE
    ---------------------
    
     * Introduction
     * Requirements
     * Installation
     * Configuration
     * Maintainers
    
    INTRODUCTION
    ------------
    Automatic User Names disables the "Username" field on user registration and
    user edit forms and generates a username automatically using a token or module
    provided pattern.The pattern could therefore be based on other profile fields
    (like first/last name), a regex version of their email address or a random
    string.
    
    This module is complimented by logintobogan, which allows users to login with
    their email address (and therefore makes usernames redundant for the user,
    but of course still necessary for Drupal's backend - where auto_username fits
    in). The realname module also compliments this module, because it ensures any
    username displays are displayed as "Firstname Surname", which may be easier to
    read.
    
    REQUIREMENTS
    ------------
    
    This module requires the following modules:
    
     * Token - https://www.drupal.org/project/token
    
    INSTALLATION
    ------------
    
     * Install as you would normally install a contributed Drupal module. See:
       https://drupal.org/documentation/install/modules-themes/modules-8
       for further information.
    
    CONFIGURATION
    -------------
    
    Automatic User Names Administration Configurations:
    
    * Module configuration link : admin/config/people/accounts/patterns.
    
    * Pattern for username -
      Enter your preferred username pattern eg: [user:mail] to generate Usernames
      having email id. To generate random username leave the field blank.
    
    * Evaluate PHP in pattern -
      Enter php code to generate custom username
      eg: <?php echo "[user:roles] Test " . $account->id();?>.
      (IMPORTANT: While using php evaluation use php tags "<?php" and "?>").
    
    MAINTAINERS
    -----------
    
    Current maintainers:
     * Alex Bergin (alexkb) - https://www.drupal.org/u/alexkb.
     * Jyoti Bohra (nehajyoti) - https://www.drupal.org/u/nehajyoti.