This component provides management of all site users and is included in the core. The component mainly implements the possibility of registration, login, differentiation of access rights.
When installing Eqsash CMS , a main user is created who is not restricted in access rights. To enter the site, a special page is used, on which you must enter your username and password.
Thus, any previously registered user can get into the system. The system checks the correctness of the entered data and, if incorrect values are entered, displays information messages framed in a red frame. In order to get to the login page, you need to type in the address bar of the browser after the domain name / user / enter , as a result, the above login form will be displayed. After logging in, the user is taken to a personal page. It has a link to edit personal information. Clicking on this link will open the page shown below.
To log out from the site, click on the "Logout" link in the upper right menu or add it to the address bar of the browser after the domain name / user / logout .
Registration of new users is carried out on a special page / user / registration . If necessary, links to the registration and login pages can be made in various places on the site, in order not to bother the user to register the necessary addresses manually. In some cases, registration can be disabled in the kernel of the system.
When registering, the user is required to enter a username, password, email address and name. After submitting the form, the process of validation of the entered values is started, and the uniqueness of the login and e-mail address is also checked. If incorrect data is entered, a corresponding message will be displayed. Otherwise, the user will be successfully registered, after which an email will be sent to the mailbox to confirm the mailbox and activate the account. If the user does not activate the account, a special message will be displayed to him when he goes to his personal page.
To access various sections of the site, you need rights, they are controlled by the administrator. To go to the main page for managing the "User" component, you need to click on the corresponding link in the main control menu, in the "Core" block. This will display the following form.
Three roles are created by default: admin, user, anonym. The strings for this table of permissions are programmatically provided by the kernel, components, and custom modules. To add rights to the functions of his module, the developer must take care of entering the corresponding fields in the "user_access" table in the database. To enable the permission, you must check the box next to the desired function and role, to disable it, uncheck the box. After the done manipulations, you must save the changes by clicking on the "Save" button.
- IT / Misc 08.07.21 How to make a free translation for a website without an API, translate documents in Google Translate
- IT / Misc 06.07.21 How to make a subscription button on a website, a subscriber base and automatic mailing
- Food / Misc 06.07.21 How to quickly cook delicious fried pies with potatoes and onions
- IT / Misc 04.07.21 Caching - create, load and reset. Where to store the cache, methods and types of caching
- IT / Database 03.07.21 Custom NoSQL - storing data in files and not only in a database. Storing settings, small data and caching files