Hi all. I need to do some change in a multilanguage site (I have not created and setup-ed it). The site is configurate to respond in italian language when the user see "it/" path.
One of the problem that I need to resolv is in the remember password email that it is sent always in english and not in Italian language even though the user is in "it/user/password" (note it/ ).
Where is the problem ?
If you need some other information ask me
Tnx.
M.
On Tue, 01 Sep 2009 11:51:29 +0200 Michel Morelli michel@ziobuddalabs.it wrote:
Hi all. I need to do some change in a multilanguage site (I have not created and setup-ed it). The site is configurate to respond in italian language when the user see "it/" path.
One of the problem that I need to resolv is in the remember password email that it is sent always in english and not in Italian language even though the user is in "it/user/password" (note it/ ).
Where is the problem ?
The "problem" is here:
function _user_mail_text($messageid, $variables = array()) {
// Check if an admin setting overrides the default string. if ($admin_setting = variable_get('user_mail_'. $messageid, FALSE)) { return strtr($admin_setting, $variables); }
If you've different default the t() function isn't called, rather a simple substitution is made.
Right now I don't see any other "quick" option other than patching core.
Hi All,
Sorry if this is a FAQ - I spent some time looking for an answer.
I have a D5 site that allows users to register. Of course, they get (what looks to me like) a strong password back vie e-mail.
I found where I can keep them from changing their login name, but I have not found how to prevent them from changing their password to a weak password.
Is this possible?
Thanks,
On May 30, 2010, at 8:30 AM, Bob Smither wrote:
I found where I can keep them from changing their login name, but I have not found how to prevent them from changing their password to a weak password.
You could always hide the password field if you don't want them to change it at all
On Sun, 2010-05-30 at 10:27 -0700, Domenic Santangelo wrote:
On May 30, 2010, at 8:30 AM, Bob Smither wrote:
I found where I can keep them from changing their login name, but I have not found how to prevent them from changing their password to a weak password.
You could always hide the password field if you don't want them to change it at all
Maybe you could! I'm not sure how to do that. I assume it requires an edit to ... what?
Thanks!
You could always hide the password field if you don't want them to change it at all
Maybe you could! I'm not sure how to do that. I assume it requires an edit to ... what?
user-edit.tpl.php
Google for it and you will learn all about it.
HTH
you could look into using hook_form_alter on the user_profile_form
----- Original Message ----- From: "Bob Smither" Smither@C-C-I.com To: support@drupal.org Sent: Sunday, May 30, 2010 2:55 PM Subject: Re: [support] Can I prevent user from changing his password?
On Sun, 2010-05-30 at 10:27 -0700, Domenic Santangelo wrote:
On May 30, 2010, at 8:30 AM, Bob Smither wrote:
I found where I can keep them from changing their login name, but I have not found how to prevent them from changing their password to a weak password.
You could always hide the password field if you don't want them to change it at all
Maybe you could! I'm not sure how to do that. I assume it requires an edit to ... what?
Thanks!
Bob Smither Smither@C-C-I.com
-- [ Drupal support list | http://lists.drupal.org/ ]
Thanks for the replies. I am going to have to study how to implement them.
Best regards,
On Mon, May 31, 2010 at 8:46 AM, Bob Smither Smither@c-c-i.com wrote:
Thanks for the replies. I am going to have to study how to implement them.
Best regards,
Bob Smither, Ph.D. Smither@c-c-i.com
No man shall ever be debarred the use of arms. The strongest reason for the people to retain the right to keep and bear arms is, as a last resort, to protect themselves against tyranny in government. - Thomas Jefferson ========================================================================
-- [ Drupal support list | http://lists.drupal.org/ ]
Hiding may not be a good solution. Geeks may use firebug or some other tool to change the password.
If you're looking for a sample implementation of this, there's an example of this in the cas module. Cas is a single sign-on module that when enabled, gives you an option of disabling the users ability to edit passwords (or email addresses).
Dave
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Neil Coghlan Sent: Sunday, May 30, 2010 11:02 AM To: support@drupal.org Subject: Re: [support] Can I prevent user from changing his password?
you could look into using hook_form_alter on the user_profile_form
----- Original Message ----- From: "Bob Smither" Smither@C-C-I.com To: support@drupal.org Sent: Sunday, May 30, 2010 2:55 PM Subject: Re: [support] Can I prevent user from changing his password?
On Sun, 2010-05-30 at 10:27 -0700, Domenic Santangelo wrote:
On May 30, 2010, at 8:30 AM, Bob Smither wrote:
I found where I can keep them from changing their login name, but I
have not found how to prevent them from changing their password to a
weak
password.
You could always hide the password field if you don't want them to
change
it at all
Maybe you could! I'm not sure how to do that. I assume it requires
an
edit to ... what?
Thanks!
Bob Smither Smither@C-C-I.com
-- [ Drupal support list | http://lists.drupal.org/ ]