로그인 할 때 암호 재설정 페이지에서 액세스가 거부되었습니다

drupal.stackexchange https://drupal.stackexchange.com/questions/170660

  •  29-09-2020
  •  | 
  •  

문제

D7 사이트를 실행하여 사용자가 암호를 재설정 할 수 있지만 서버에서만 사용자가 암호를 재설정 할 수 없도록합니다.일회성 로그인 링크가있는 이메일이 괜찮아졌지만 사용자가 링크를 클릭하면 일반 "이 페이지에 액세스 할 권한이 없음"메시지가있는 403 페이지를 얻을 수 있습니다.서버 환경이어야합니다 (SMTP 모듈을 사용하여 전자 메일을 보내 전자 메일 보내기)이므로 서버 환경이 필요합니다.나는 user_edit_access ()에서 이슈가 일어난다.

문제가있을 수있는 것과 같은 제안은 무엇입니까?서버가 Varnish를 사용하고 있으므로 마음에 왔을 것으로 생각되지만 그걸 알아내는 방법을 모르겠습니다.

감사합니다.

도움이 되었습니까?

해결책

path \ sites \ defaults에서 settings.php에서 /* $cookie_domain = $_SERVER['HTTP_HOST']; */를 주석 처리합니다.

또는 그렇지 않으면 settings.php :

에서 아래 코드를 사용하십시오.
<?php
/**
 * Drupal automatically generates a unique session cookie name for each site
 * based on its full domain name. If you have multiple domains pointing at the
 * same Drupal site, you can either redirect them all to a single domain (see
 * comment in .htaccess), or uncomment the line below and specify their shared
 * base domain. Doing so assures that users remain logged in as they cross
 * between your various domains. Make sure to always start the $cookie_domain
 * with a leading dot, as per RFC 2109.
 */
$cookie_domain = '.your_domain.com';
$conf['https'] = TRUE;
?>
.

익명 사용자가있는 사이트에서는 "www"를 사용하지 않고 다른 탭과 익명으로 로그인 할 수 있도록이를 설정하지 않도록 편리합니다.

소스

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 drupal.stackexchange
scroll top