Questions tagged as 'users-roles'

1
answer

Entrust Laravel 5.3

I've been working with Laravel Entrust for several days. It turns out that when I try to validate the roles from the routes, I get the following error: Class App\Http\Zizaco\Entrust\Middleware\EntrustRole does not exist Here is my validatio...
asked by 26.10.2016 / 20:50
1
answer

Laravel 5.2 and Entrust

I have a problem that I have not been able to solve and it has been several hours in the. I am using Laravel 5.2 and the component to manage Roles and Permissions Entrust . Everything is well configured, including the middleware provided by En...
asked by 03.07.2016 / 18:49
2
answers

Grant or restrict permissions to routes through roles in Spring Security in Spring Boot

Good morning everyone, I have an application in Spring Boot in which I implemented Spring Security. I have managed to log in and have access to all the routes once logged in, and also restriction to all routes when the session has not been start...
asked by 04.11.2018 / 20:06
1
answer

How to create login for different types of users in laravel 5.3

Hello, I have a question, I am working on an intranet system for a school in which I have: As you can see I have several types of users and each one has its model and controller with its methods (index, create, view, delete, etc). My qu...
asked by 07.11.2016 / 17:44
1
answer

Error loading session (db user) security symfony

I come to explain my problem to you because I do not know what to do anymore ... I've been reading Symfony's official documentation for almost two weeks as others that are not official to try to make a user session system with Symfony . I d...
asked by 11.09.2016 / 12:02
1
answer

Create an own User Model and authenticate the entry

Good morning, create my own user model in Django and the idea is to use it to validate the login to the system without using the model.user that Django has by default. How can I do so that users can login to my system?     
asked by 13.01.2017 / 15:33
1
answer

Change function of Policies

I am trying to modify the Policies function that is currently this: public function pass(User $user, Product $product) { return $user->id == $product->user_id; } Let's see if I explain myself well .. I have some products that when...
asked by 19.10.2018 / 11:55
1
answer

login and security menu by roles

I have a Project with a web-form called login and a master.page called menu, also a series of tables where I have roles, users and page names, I would like to be able to do when I log in and enter the credentials according to the role to appear...
asked by 25.05.2018 / 05:06
1
answer

What is the best way to deal with different user roles?

I need you to guide me as to the best way to control various types of users, I currently have 3 (Admin, user, editor), the role field I have in the users table as an integer (0,1,2), they can increase the number of roles. What is the best or mos...
asked by 20.11.2017 / 10:57
1
answer

Login by session roles

Good afternoon, nights, I'm doing a login for session roles and with two it works perfectly, so like this: user.php <?php session_start(); if(isset($_SESSION["usuario"])){ if($_SESSION["privilegio"] == 0){ }else{ header(...
asked by 04.05.2017 / 21:20