[rt-users] RT3 and non-privileged user logins

Carl Jones carlj at MIT.EDU
Fri Jun 13 16:10:39 EDT 2003


Hi,

I'm still a bit unclear as to how to allow non-privileged users to 
check the status of their tickets.  I'm on version 3.0.2. We would like 
to tell them how to look at their ticket status in the auto-reply 
message but I don't know what their password is being set to? Trying to 
searching the list,  I did see a message from Jesse about this from 
November (see below). I tried inserting the code into our default 
autoreply template but have not gotten it to work so far.  I'm probably 
doing something dumb, but just curious to know how others are doing 
this (or similar)?

Thanks.

Carl

> [rt-users] Solution for User Password + Viewing ticket status
> Jesse Vincent jesse at bestpractical.com
> Thu, 7 Nov 2002 22:33:04 -0500
>
> Previous message: [rt-users] Solution for User Password + Viewing 
> ticket status
> Next message: [rt-users] Handling RT responses via email
> Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> The following template will send users an autogenerated random
> pronouncable password based if inserted into an autoreply template=20
>
> Users who have previously submitted tickets but not yet had a password 
> assi=
> gned
> will have a password assigned and sent on submission of their first 
> new tic=
> ket. (All previous tickets will still show up in the web ui)=20
>
> Best,
>         Jesse

> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D CUT HERE 
> =3D=3D=3D=3D=3D=3D=
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>
> {
> *RT::User::GenerateRandomNextChar =3D 
> \&RT::User::_GenerateRandomNextChar;
>
>
> if (($Transaction->CreatorObj->id !=3D $RT::Nobody->id) &&
>     (!$Transaction->CreatorObj->Privileged) &&
>     ($Transaction->CreatorObj->__Value('Password') eq '*NO-PASSWORD*')
>     ) {
>
>         my $user =3D RT::User->new($RT::SystemUser);
>         $user->Load($Transaction->CreatorObj->Id);
>         my ($stat, $pass) =3D $user->SetRandomPassword();
>
>         if (!$stat) {
>                 $OUT .=3D
> "An internal error has occurred. RT was not able to set a password for 
> you.
> Please contact your local RT administrator for assistance.";
>
>         }
>
>
> $out .=3D "
> You can check the current status and history of your requests at:
>
>         ".$RT::WebURL."
>
> When prompted, enter the following username and password:
>
>         Username: ".$user->Name."
>         Password: ".$pass."
> ";
> }
> }
>
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D CUT HERE 
> =3D=3D=3D=3D=3D=
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>
>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 2987 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20030613/c376ff43/attachment.bin>


More information about the rt-users mailing list