Anonymous login


This is a very simple, lightweight module that will redirect anonymous users to the login page whenever they reach any admin-specified page paths, and will direct them back to the originally-requested page after successful login.

Use-case examples

1) You want to restrict your entire site to authenticated users. Simply enter "*" as the only path to redirect and all anonymous traffic will be redirected to the login page.

2) Your website sends out emails that contain links that only authenticated users can reach (edit your account, edit a node, view a private message, etc). If the user clicks the link from the email and they are not currently logged in they will reach an "Access denied" page; which is horrible for usability. With this module enabled and configured to act on node/*/edit paths, if a user clicks a link to site.com/node/123/edit, they will be redirected to site.com/user/login?destination=node/123/edit, so they can log in, then be brought to the page originally requested.

Configuration

After enabling the module, navigate to the admin settings page (D7: admin/config/system/anonymous-login, D8: admin/config/user-interface/anonymous-login). You can then enter a list of page paths (wildcards [*] are supported), which will redirect anonymous users to the login page when visited. Also supported are patterns for which paths will be ignored.

Drupal 8

A release is almost ready. The following need to be completed:


Anonymous login项目的Drush安装命令:复制到剪贴板

注:个别模块仍需开启相关子模块。

项目分类:

周安装量: 
1070
维护状态: 
积极维护中
开发状态: 
仅修复BUG,不添加新功能

推荐版本下载:

版本下载地址发布日期发布说明翻译下载
7.x-1.3tar.gz (8.68 KB) | zip (9.89 KB)2015年4月7日发布说明简 | 繁 | 更多

开发版本下载:

版本下载地址发布日期发布说明翻译下载
8.x-1.x-devtar.gz (9.59 KB) | zip (11.86 KB)2016年6月30日发布说明简 | 繁 | 更多
7.x-1.x-devtar.gz (9.04 KB) | zip (10.53 KB)2016年10月12日发布说明简 | 繁 | 更多