Gossamer Forum
Home : Products : Others : Gossamer Community :

username of for a new account

Quote Reply
username of for a new account
Hello,

Signing up for a new account G Community, I would like that username of the Gmail be the same one the G Communty login . So users must have not the possibilty to have it different.
How to do so?
Antoine
Quote Reply
Re: [antoined] username of for a new account In reply to
Hi,

Currently it's not that easy to do as it doesn't work if you have multiple domains (i.e. your username is alex, but you have two domains in gossamer mail, which email address do I get?).

If you only have one domain, you can do a work around by edit lib/Community/Apps/Local/GMail.pm and in sub insert replace the if (! $email) block with:

Code:
if (! $email) {
$user->{"app_$app->{app_keyword}_email_username"} = $user->{comm_username};
$user->{"app_$app->{app_keyword}_email_domain"} = 'somedomain.com';
$email = $user->{"app_$app->{app_keyword}_email_username"} . '@' . $user->{"app_$app->{app_keyword}_email_domain"};
$user->{"app_$app->{app_keyword}_email"} = $email;
}

This will make it so that user signs up as alex, will get alex@somedomain.com as an address. I'll look into a better fix.

Cheers,

Alex
--
Gossamer Threads Inc.