Action: Generate a one-time-login-url

Created on 24 September 2011, almost 13 years ago
Updated 5 December 2023, 7 months ago

Hellow, i have a Drupal 7 site. Anonymous users can create a node and here they have to write their mail.

When the node is created, rules will create a new user account and then send an email which contains username and one-time login url.

The user account is successfully created, and mail is successfully sent but in the mail is not the one time url, but only this: [entity-name:one-time-login-url]. Is the problem in Rules?

I hope i described it well.

✨ Feature request
Status

Needs review

Version

3.0

Component

Actions

Created by

πŸ‡¨πŸ‡ΏCzech Republic berkas1

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¬πŸ‡§United Kingdom mrcharles

    Hi. I've had great value out of the patch in #73 for years now.

    It seems to not be compatible with the 7.x-2.14 release of August '23.

    I wonder if anyone else is experiencing this and any help to fix the issue would be greatly received.

    Many thanks in advance.

  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 9.5.5 + Environment: PHP 7.3 & MySQL 5.7
    last update 7 months ago
    415 pass, 2 fail
  • πŸ‡·πŸ‡ΊRussia zniki.ru

    There is no closing quote in 86.
    I update patch 86, I was not able to create interdiff between 86 - 88, having issue

    interdiff: Whitespace damage detected in input
    

    Changes, add close quote:

          '35. Create login URL' => [
            'rules_user_create_login_url',
          ],
    

    I was searching for solution

    1) Drupal\Tests\rules\Unit\Integration\RulesAction\UserCreateLoginUrlTest::testUserCreateLoginUrlWithValidUser
    Error: Call to undefined function Drupal\rules\Plugin\RulesAction\user_pass_reset_url()
    

    But only I found approach used in SendAccountEmailTest, where dump function _user_mail_notify used.
    But I am not sure that this is the right approach.

    And I don't understand what should be tested in the Unit test for this action.

  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 9.5.5 + Environment: PHP 7.3 & MySQL 5.7
    last update 7 months ago
    420 pass
  • πŸ‡·πŸ‡ΊRussia zniki.ru

    I was able to finish Unit Integration test, but this is my first Integration test, would love to get some feedback.

Production build 0.69.0 2024