1 <& /SelfService/Elements/Header, title => 'Preferences' &>
3 <& /Elements/ListActions, actions => \@results &>
6 % unless ($RT::WebExternalAuth) {
7 <& /Elements/TitleBoxStart, title => 'Change password' &>
8 New password: <input type=password name="NewPass1" size=16>
9 Confirm: <input type=password name="NewPass2" size=16>
10 <& /Elements/TitleBoxEnd &>
13 <& /Elements/TitleBoxStart, title => 'Signature' &>
15 <TEXTAREA COLS=72 ROWS=4 WRAP=HARD NAME="Signature"><% $session{'CurrentUser'}->UserObj->Signature %></TEXTAREA>
18 <& /Elements/TitleBoxEnd &>
19 <& /Elements/Submit &>
27 if ($NewPass1 ne $NewPass2) {
28 push (@results, "Passwords did not match.");
31 my ($val, $msg)=$session{'CurrentUser'}->UserObj->SetPassword($NewPass1);
32 push (@results, "Password: ".$msg);
36 $Signature =~ s/(\r\n|\r)/\n/g;
37 if ($Signature ne $session{'CurrentUser'}->UserObj->Signature) {
38 my ($val, $msg)=$session{'CurrentUser'}->UserObj->SetSignature($Signature);
39 push (@results, "Signature: ".$msg);
42 #A hack to make sure that session gets rewritten.