Opened 8 years ago

Closed 7 years ago

#1323866 closed Feature Requests (fixed)

Abbreviated Login Option

Reported by: erryn Owned by: roundcube
Priority: 5 Milestone: 0.1-beta2
Component: User Interface Version: None
Severity: minor Keywords:
Cc:

Description (last modified by thomasb)

I'd like to see an option to abbreviate the login. For
example, if the required mail login is "bob@…"
it would be nice to allow a login of simply "bob", with
the "@server.com" assumed if not specified.

Change History (2)

comment:1 Changed 8 years ago by dianoga7

Logged In: YES 
user_id=1306021

This is not official..., but it will work.

File: include/main.inc
Function: rcmail_login
Line #: 237
Code:

if ($CONFIG['domain']) {

  if (strpos($user, '@') === false) {
    $user .= $CONFIG['domain'];
  }

}


File: config/main.inc.php
Line #: 35 (doesn't actually matter though)
Code:

// Default Domain
// Mainly for shared hosting servers. People that use
cpanel, etc...
// This will allow users to login without typing their full
email address
// As long as it actually exists on the default domain
// The script will check to see if you have a domain in your
username.
// If not, this will be added to the end.
// Set this to whatever comes after the @ in the email address
// If you do not want anything added to a username w/o an @,
leave this blank
$rcmail_config['domain'] = 'mydomain.com';

comment:2 Changed 7 years ago by thomasb

  • Description modified (diff)
  • Resolution changed from None to fixed
  • Severity changed from critical to minor
  • Status changed from assigned to closed

This can be achieved by configuring the $rcmail_configusername_domain? parameter.

Note: See TracTickets for help on using tickets.