[rt-devel] If no email set it to username at domain.com
Kevin Falcone
falcone at bestpractical.com
Mon Aug 20 10:45:17 EDT 2012
On Fri, Aug 17, 2012 at 09:27:16AM -0400, Ajunpreet Singh wrote:
> Im tring to make it so if user does not have an email address set it to
> their username at myemaildomain.com
>
> In users.pm i can set it so that $args{ ' EmailAddress ' } = $args{ 'Name'
> } unless ($args{ ' EmailAddress ' })
>
> but I need it so its their username followed by @something.com for all
> users if email is not defined.
You can use CanonicalizeUserInfo for this (Assuming you're not using
RT-Authen-ExternalAuth which makes use of this code).
-kevin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-devel/attachments/20120820/0c96fb89/attachment.pgp>
More information about the rt-devel
mailing list