Setting password on creation of account

Where do I have to change the code to automatically set a users password
when the system creates theire account?

Ole

-----Oprindelig meddelelse-----Fra: Beachey, Kendric [mailto:Kendric.Beachey@garmin.com]
Sendt: 24. maj 2002 20:41
Til: rt-users@lists.fsck.com
Emne: RE: [rt-users] advice on making rt customer friendly?

  1. What is the least painful way to allow people to check on their
    ticket via the web? These will be people who are not in the system as
    users, but who will almost always have an auto-created ticket. I know
    that they get the URL in the auto-response, but how can I get them past
    the login screen? I am interested in a workable solution that does not
    allow everyone to see all of the tickets, but that would let a person
    get a reasonable idea of where this issue is on the web.

You’re looking for the “Self-Service” interface. Any user that doesn’t
have “Let this user be granted rights” checked in their profile will
default to the self-service interface.

They will still have to go through the login screen, but you can finagle
the system to automatically set their password to “hello” or their
e-mail address or whatever when it first creates their account.
Kendric Beachey

rt-users mailing list
rt-users@lists.fsck.com http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

“Ole Schelde” ole.schelde@a-aarhus.dk writes:

Where do I have to change the code to automatically set a users
password when the system creates theire account?

For users created by mail, you’ll want to hack at
/lib/RT/Interface/Email.pm, starting at line 412 or so.

Espen Wiborg espenhw@empolis.no
In most advertisements, the time displayed on a watch is 10:10.

From: Ole Schelde [mailto:ole.schelde@a-aarhus.dk]

Where do I have to change the code to automatically set a
users password
when the system creates theire account?

I think there are several ways to do it. One is to edit your copy of
/path/to/rt/lib/RT/Interface/Email.pm and find the lines where it’s
autocreating a user because it’s received e-mail from someone it doesn’t
recognize. (Just do a search on “Autocreated” and you’ll get there.)

Find the call to NewUser->Create() and add a piece that’s something like

Password => ($Username || $Address),

in the middle of the parameter area. In this example, it will use the
username as the password, or, if the username doesn’t seem to be defined, it
will use the e-mail address as the password.