function UserPasswordResetTestCase::generateResetURL

Generates login link.

2 calls to UserPasswordResetTestCase::generateResetURL()
UserPasswordResetTestCase::testUserPasswordReset in modules/user/user.test
Tests password reset functionality.
UserPasswordResetTestCase::testUserPasswordResetLoggedIn in modules/user/user.test
Test user password reset while logged in.

File

modules/user/user.test, line 523

Class

UserPasswordResetTestCase
Tests resetting a user password.

Code

public function generateResetURL($account, $bypass_form = FALSE) {
    return user_pass_reset_url($account) . ($bypass_form ? '/login' : '');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.