A modern and framework agnostic authorization and authentication package featuring groups, permissions, custom hashing algorithms and additional security features.
Questions tagged [cartalyst-sentry]
196 questions
1
vote
0 answers
Importing SQL Table in Laravel and generating passwords from Column
I want to import an old Symfony users table in my Laravel project. The old passwordcolumn is hashed with sha1 and some of them with md5.
What would be the easiest way to import the user table and generate the passwords from i.e. the username column?

vangelis
- 107
- 1
- 3
- 10
1
vote
0 answers
Separating Controllers in Laravel4
I apologize for the broadness of this question but I am trying to implement my code in the best possible way and I'm wondering how others have approached this situation. I am building an application using Laravel4 and it will consist of a front-end…

Javacadabra
- 5,578
- 15
- 84
- 152
1
vote
1 answer
best way to handle errors in laravel
I am stuck a bit, I have a little form and auth system - Sentry.
1) Get data from Input and validate it.
It's okay, I get it, check with rules, set messageBag

Ascelhem
- 413
- 3
- 21
1
vote
1 answer
Expand sentry users table
I expanded Sentry users table with few columns, but in this case I need help for city_id column. I did it in Laravel migrations. Now I need to make relationship between Sentry users and cities table.
I try to expand Sentry user Model and add…

Kolesar
- 1,265
- 3
- 19
- 41
1
vote
0 answers
Laravel 4 Undefined offset: 0 (View: users.blade.php)
I have this error coming up all the time Undefined offset: 0 (View: users.blade.php)
Here is the code of index() in UserController:
public function index() {
// try{
// Find the user using the user id
$user =…

brack11
- 171
- 3
- 11
1
vote
0 answers
Laravel - creating a repository for Sentry
I want to make a user repository which uses Sentry for user management. All goes well, however, I can't use the repository in filters.php.
If I use the regular Sentry::check() method in my sentry route filter, I cannot perform any authentication…

Onion
- 1,714
- 1
- 23
- 42
1
vote
0 answers
saving permissions as json in Administrator for this error-> Cannot JSON_decode permissions [Admin]
I am using Administrator (frozennode) with Sentry . for permission part when I want to create new group I dont know how should I save the text "user.update" like {"user.update":1} .
I have to .because sentry's methods work just with json data.
but…

saha
- 221
- 1
- 5
- 13
1
vote
2 answers
Laravel/Sentry Eloquent\User::__toString() must not throw and exception
Having a weird issue. I have a portal I have developed which up until today has been working good in both the prod and dev environments. Today after running a composer update everything works great on dev environment but when I pushed it to…

Silent
- 438
- 2
- 6
- 19
1
vote
0 answers
Laravel Packages: Sentry and Ardent
Is it possible to combine the Sentry package and the Ardent package for Laravel?
I want to use Ardent for validations while registering users, while Sentry is for authentication.

user2734966
- 11
- 2
1
vote
1 answer
Trying to install cartalyst/data-grid
I'm just wondering if this has happened to anyone and how they've been able to solve it.
I'm trying to install data-grid from Cartalyst, following this-manual.
Anyway. When i get to the step where i have to either install or update, command prompt…

arrigonfr
- 742
- 3
- 12
- 34
1
vote
0 answers
Sentry 2 + Laravel 4 filter redirect not working
I'm using Laravel 4 with Sentry 2 and everything seems to be working fine, except for this:
When the user is not logged in, instead of redirecting him to the login page with a flash message, it always 404. I've tried many things, got different…

Victor
- 556
- 1
- 10
- 23
1
vote
0 answers
Sentry 2 permissions array
I have an admin panel which enables admins to assign different permissions to a user. The way that I do this is through tick boxes and when ticked it should assign a 1 to that permission.
The only problem is, the permissions are dynamic and so needs…

CheckeredMichael
- 571
- 8
- 30
1
vote
1 answer
Sentry 2 - Create Group Permissions - Laravel Package
I have tried looking on the Cartalyst site for some documentation, but I can not find it any where. So, my question is... If I have a list of groups on the create view, say Admin, Moderator and User. How would I then automate the permissions for…

CheckeredMichael
- 571
- 8
- 30
1
vote
1 answer
Laravel 4 DELETE / PUT being blocked
All of my DELETE and PUT requests get blocked (405). I have tried putting headers in the before and after filters:
App::before(function($request)
{
header('Access-Control-Allow-Origin', '*');
header('Allow', 'GET, POST, OPTIONS, PUT,…

JakeTheBraek
- 261
- 1
- 5
- 12
1
vote
1 answer
Sentry versus OAuth2 server
I used OAuth2 code for my API server from githhub: https://github.com/lucadegasperi/oauth2-server-laravel
Instead using standard Laravel Auth, I want to use Sentry, because Sentry have a lot of features for sending mail, ban, approve registration,…

Kolesar
- 1,265
- 3
- 19
- 41