If you use the "legal module" which has the ability to let the useres "reaccept" changed terms. a login via webform dialog login will result in an error.

error while .... /user/login/ajax

can anyone confirm that?

Comments

drewish’s picture

Yeah, I can confirm that breaks. It looks like legal.module uses hook_user($op='login') to fire:

      drupal_goto('legal_accept/' . $signatory->uid . '/' . md5($signatory->name . $signatory->pass . $signatory->login));

There's no CTools friendly version of that page for Dialog to process so it barfs on the result. There's no way to prevent AJAX redirection so I guess one option would be to compare the initial and final URLs and if there's an error just redirect them to the final one. Doesn't seem too pretty though.

marcoka’s picture

so any hints on that, so i could try something? it makes the legal module pretty unusable with ctools.

devin carlson’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Dialog 6.x is no longer supported.