Verified Commit 7e4d997d authored by Lee Rowlands's avatar Lee Rowlands
Browse files

Issue #3347480 by AndyF: Use temporary redirect for RFC5785 change password well known resource

(cherry picked from commit 6a8409a5)
parent c5da01d3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -336,7 +336,7 @@ public function userPage() {
   *   user.
   */
  public function userEditPage() {
    return $this->redirect('entity.user.edit_form', ['user' => $this->currentUser()->id()], [], 301);
    return $this->redirect('entity.user.edit_form', ['user' => $this->currentUser()->id()], [], 302);
  }

  /**
+1 −1
Original line number Diff line number Diff line
@@ -69,7 +69,7 @@ public function testUserEditPage() {
      ->toString();
    $this->assertEquals($edit_url, $response->getTargetUrl());

    $this->assertEquals(301, $response->getStatusCode());
    $this->assertEquals(302, $response->getStatusCode());

  }