Skip to Content.
Sympa Menu

en - RE: [sympa-users] how-to: disable changing email address, password in "preferences"

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Aaron Bennett <address@concealed>
  • To: Philippe Aepli <address@concealed>, "address@concealed" <address@concealed>
  • Subject: RE: [sympa-users] how-to: disable changing email address, password in "preferences"
  • Date: Thu, 27 Mar 2014 13:52:52 +0000

Thank you, that worked perfectly.

 

-Aaron

 

 

 

From: Philippe Aepli [mailto:address@concealed]
Sent: Wednesday, March 26, 2014 5:39 AM
To: Aaron Bennett; address@concealed
Subject: RE: how-to: disable changing email address, password in "preferences"

 

Hello,

 

I had the same issue with the Shibboleth authentication.

 

If you would hide the options “change email address” and “change password”, you need to modify the template file pref.tt2.

 

The original version of this file is in the folder default/web.tt2 of your Sympa installation (for my setup: /home/sympa/default/web.tt2/pref.tt2).

 

Copy this file to the Sympa customization folder (for me: /home/sympa/etc/web.tt2).

 

For Sympa 6.1.17, just add a test on authentication method above this line:

     <h4>[%|loc%]Changing your email address[%END%]</h4>

 

And, don’t forget adding [% END %] before the end of file.

 

Which gives:

 

[% IF session.auth == 'classic' %]

<h4>[%|loc%]Changing your email address[%END%]</h4>

 

[%|loc%]You can update your email address for all your list memberships at once. If you are also list owner or list moderator your email address for these roles will also be updated.[%END%]

<form action=""[%" path_cgi %]" method="post">

<fieldset>

<label for=""new_email">[%|loc%]New" email address:[%END%]  </label><input id="new_email" name="new_email" size="25" />

 

 

<input class="MainMenuLinks" type="submit" name="action_setpasswd" value="[%|loc%]Submit[%END%]" />

</fieldset>

</form>

<br />

[% END %]

 

</div>

 

<!-- end pref.tt2 -->

 

Regards.

 

 

Philippe AEPLI              Email: address@concealed

Université de Genève        Tél: +41 22 379 72 86

Division STIC               Mob: +41 79 280 20 24

Rue du Général-Dufour, 24   Fax: +41 22 379 79 86

1204 Genève

 

De : address@concealed [mailto:address@concealed] De la part de Aaron Bennett
Envoyé : mardi 25 mars 2014 20:23
À : address@concealed
Objet : [sympa-users] how-to: disable changing email address, password in "preferences"

 

Hi,

 

I’m using CAS and all client email addresses come from LDAP.  I want to hide the “change email address” and “change password” screens in user’s preferences.  Right now, if a user changes password, it says “setpasswd: action completed”, but doesn’t change the password.

 

Is there a way to disable this that doesn’t involve patching Sympa?

 

Thanks,

 

Aaron

 




Archive powered by MHonArc 2.6.19+.

Top of Page