Questions tagged [cartalyst-sentry]

A modern and framework agnostic authorization and authentication package featuring groups, permissions, custom hashing algorithms and additional security features.

196 questions
1
vote
0 answers

php Sentry: Force user to logout

I want to automatically logout inactive users. Problem is that users are still logged when I mark them as inactive. I think that problem is that session variable for each inactive user are still valid and they can easily login even if I mark them as…
jureispro
  • 1,342
  • 5
  • 22
  • 43
1
vote
1 answer

Get online users with Laravel 4

I am trying to get online users count in Laravel 4. I am using Sentry 2 with Laravel. There are 2 columns in users table which are last_login and updated_at. I am confused at this point, because everytime last_login and updated_at columns have same…
yigitozmen
  • 947
  • 4
  • 23
  • 42
1
vote
1 answer

How to debug insert exception in laravel 4 / cartalyst sentry

I took over a project written in Laravel 4. There are two systems (dev and production) which basically should be doing the same. When I try to register a user (the package used is cartalyst/sentry) it works on production. On the dev environment it…
hogan
  • 1,434
  • 1
  • 15
  • 32
1
vote
1 answer

Laravel 4.2: Sentry 2 Remember me function not working

I have tried to log the user in without remembering him (Sentry::authenticate($input, false);) and I get a cookie created, so I don't get disconnected when exiting my browser. Please find my code below Controller public function store() { …
1
vote
2 answers

Laravel 5 with Sentry RouteServiceProvider

Trying to upgrade to Laravel and following this Laravel 5 upgrade But when it comes to Filter routes for Sentry. I get this error: FatalErrorException in RouteServiceProvider.php line 38: Class 'App\Providers\Session' not found Related to this…
martyn
  • 230
  • 5
  • 22
1
vote
0 answers

Remove a permission from a user in Sentry

I'm using Sentry 2 to build a basic RBAC system, I want to ignore Groups completely if I can, assigning permissions/roles directly to a user. As a superuser, I can currently assign permissions to any other user in the database and this works…
philipobenito
  • 682
  • 1
  • 4
  • 14
1
vote
0 answers

Sentry : UserExistsException, with a brand new user?

I try to register a new user via Sentry, and Sentry::register throws an UserExistsException. But I'm sure that it doesn't exist in my DB (email based login, and I created a random address). Here's an excerpt of my code: try { try { …
jpicaude
  • 356
  • 2
  • 8
1
vote
1 answer

change primary key of sentry 2 user migration table

I have tried this code and run the migrations that ships with sentry 2 by doing this: php artisan migrate:--package cartalyst/sentry. I was able to create the user, group, and other tables in my database. How do i change the ID column of the user…
Chritech
  • 33
  • 7
1
vote
1 answer

Laravel: Sentry Routes and Filter groups

I am trying Sentry for Laravel and I came accross with this problem. I have 2 group of routes: Route::group(array( 'before' => 'Sentry|inGroup:Administrator'), function(){ Route::get('/', 'HomeController@index'); Route::resource('user',…
1
vote
0 answers

Laravel Sentry User Model with Relationship

I have a User Model: use Cartalyst\Sentry\Users\Eloquent\User as SentryModel; class User extends SentryModel { public function raspberries() { return $this->hasMany('Raspberry'); } } And a SentryModel:
goldlife
  • 1,949
  • 3
  • 29
  • 48
1
vote
0 answers

how to use permissions table to fetch dynamic permissions for Sentry in Laravel 4

I want to create dynamic permissions for each users through checkbox using Sentry in Laravel 4. I've created a table named permissions that has two columns: id | name | user_id Now, I want to use:…
Tahsin Abrar
  • 860
  • 13
  • 22
1
vote
0 answers

Sentry 2 Want to using two field email or phone for LOGIN

I am working with SENTRY 2. In my Application i want to login by EMAIL OR phone. That means one user can login via his email address and if he want he also login with his phone number. I add a phone in my users table. when i am using email its work…
1
vote
1 answer

Laravel remember me functionality with Sentry

I want to create login script using remember me. I am new to laravel, according to my search I found to create remember_token with 255 varchar and set to NULL in my users table and in my User model I create three functions that…
nitin7805
  • 203
  • 2
  • 13
1
vote
1 answer

Sentry add User to Group

I've already used this library and I cant quite find the problem. For some reason when I'm trying to add a user to a group I get the following MySQL error: Column not found: 1054 Unknown column 'users_groups.users_id' in 'field list' Which…
mxlfa
  • 95
  • 8
1
vote
1 answer

Remove Sentry Account Activation Check

I have a table named 'users' that is being used by Sentry however I removed the columns I didn't need such as activation codes and persist codes etc. This is the structure of my table: I am trying to log in using an account I created through…
Liam Potter
  • 1,732
  • 8
  • 24
  • 47