I was not able to translete "Click here to set password" warning because string contains HTML. This is how I changed the module so please patch it. Change this in gauth_login.module:

if (variable_get('gauth_login_prom_message', TRUE)) {
  drupal_set_message(t("Click <a href=@url target=_blank>here</a> to set password", array('@url' => url('user/' . $user->uid . '/edit', array('query' => array('pass-reset-token' => $token))))), 'warning');
}

to this:

$pass_url = url('user/' . $user->uid . '/edit', array('query' => array('pass-reset-token' => $token)));
if (variable_get('gauth_login_prom_message', TRUE)) {
  drupal_set_message('<a href="' . $pass_url . '" target="_blank">' . t('Click here to set password') . '</a>', 'warning');
}

Comments

jasom created an issue. See original summary.

jasom’s picture

Issue summary: View changes
ashwinsh’s picture

Status: Active » Needs review
StatusFileSize
new1.14 KB

Attached patch file for this, please review it.

Thank you,

jasom’s picture

patch worked, tnks

twistor’s picture

StatusFileSize
new1.25 KB

More correct patch.

  • sadashiv committed e3a7a85 on 7.x-1.x authored by twistor
    Issue #2767083 by ashwinsh, twistor: Warning string contains HTML
    
sadashiv’s picture

Status: Needs review » Fixed

Hi,

Committed this change. Will be out in next release.

Thanks,
Sadashiv.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.