设置用户注册策略

From Joomla! Documentation

This page is a translated version of the page Setting user registration policy and the translation is 42% complete.
Outdated translations are marked like this.
Other languages:
Deutsch • ‎English • ‎Nederlands • ‎español • ‎français • ‎italiano • ‎العربية • ‎فارسی • ‎中文(中国大陆)‎
Copyedit.png
This Article Needs Your Help

This article is tagged because it NEEDS UPDATING. You can help the Joomla! Documentation Wiki by contributing to it.
More pages that need help similar to this one are here. NOTE-If you feel the need is satistified, please remove this notice.

Reason: rewrite article to flow better


==什么是用户注册?==

Login module example-en.png

更新到Joomla 3.4的版本后,在默认情况下允许注册在你的网站上获得额外资源,例如,注册用户可能被允许提交新闻或web链接。你的Joomla !网站实现了用户注册政策,你可以根据特定需求决定什么额外的资源可供注册用户使用。如果你喜欢你可以禁用用户注册完全。自从Joomla 3.4新安装在默认情况下是禁用的。

开启用户在你的网站上注册,可以新建一个菜单用于“创建帐户”链接登录表单模块或一个登录表单页面上的“注册”链接。一经注册,用户可以通过输入自己的用户名和密码登录到你的网站。也有额外的链接来管理用户属性,比如忘记用户名或密码时进行找回。如果你使用登录表单模块可以以模块形式分配到网站的某个位置,让它出现在一个或多个页面任何模块的位置。

你可以禁用用户注册(六艺Joomla:不再接受新用户),但仍有登录模块或登录菜单项提供老用户的正常登陆。在这种情况下,就不会有“创建帐户”或“注册”链接显示在登录表单,您将需要管理员在后台手动注册用户。一旦注册,他们将能够正常登录前端。这样可以更精准的管理用户注册。

==只允许用户手动注册==

If you want to allow certain (authorised) users to be able to log in to the front-end, but not allow regular site visitors to be able to register themselves, do this:

  1. Disable user registration by changing the Allow User Registration field in Global Configuration to No. To learn how to do this see Changing User Registration Settings.
  2. Set up a Login Form somewhere on your website. There are two ways this can be done:
    • The Login Form is a module assigned to a template position. The exact location where the Login Form will appear will depend on the Template being used. Typically it will be in a column to the left or the right of the main content. It is possible to assign the Login Form module to appear on one or more pages of your website. To learn how to do this see Customising the Login Form Module.
    • The Login Form is associated with a Menu Item. When clicked, the Login Form appears where the content would normally be. To learn how to do this see Creating a Login Form Menu Item.


==允许用户注册==

If you want your site visitors to be able to register themselves so as to gain access to additional resources, do this:

  1. Enable user registration. (Since Joomla 3.4 it is disabled by default.) This is done by changing the Allow User Registration field in user options to Yes. To learn how to do this see Changing User Registration Settings.
  2. Optional: Set the New User Registration Group field in user options to the user group that self-registered users will be given when they complete the registration process. This should normally be set to Registered (which is the default).
  3. Optional: Set the New User Account Activation field in user options:
    • If set to None the user account will be activated immediately and the user can log in straight away (even if their email address is invalid).
    • If set to Self the User will be emailed a link to activate their account before they can log in.
    • If set to Administrator the user will be emailed a link to activate their account before they can log in. Then all users set to receive system emails and who have the permission to create users will be notified to activate the user's account. This is the default setting. This is a simple validation step because to complete the registration process the user must enter a valid email address to which they have access. It reduces the number of spammers creating fake accounts on your website.
  4. Set up a Login Form somewhere on your website. There are two ways this can be done:
    • The Login Form is a Module assigned to a module position. The exact location where the Login Form will appear will depend on the Template being used. Typically it will be in a column to the left or the right of the main content. It is possible to assign the Login Form module to appear on one or more pages of your website. To learn how to do this see Customising the Login Form Module.
    • The Login Form is associated with a Menu Item. When clicked, the Login Form appears where the content would normally be. To learn how to do this see Creating a Login Form Menu Item.

==限制用户对资源的访问==