
falcone at bestpractical
Aug 20, 2012, 7:45 AM
Post #2 of 2
(298 views)
Permalink
|
|
Re: If no email set it to username@domain.com
[In reply to]
|
|
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 > > 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
|