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
0
votes
0 answers

Rename Sentry groups table in Laravel

The Sentry table which handles all types of accounts is currently called xx_groups (xx being your prefix). This doesn't seem apt as the word groups can be used in every system for something more relevant to the user. The word roles seems more ideal.…
enchance
  • 29,075
  • 35
  • 87
  • 127
0
votes
1 answer

Laravel Sentry getUser->email

I am having trouble passing the email of a Sentry User to my db. I can pass the id of the User successfully, but not the email. public static function loggedInUser() { $user = Sentry::getUser(); if ( isset($user) ) { return…
Stephenmelb
  • 457
  • 1
  • 3
  • 23
0
votes
1 answer

Adding another table to sentry2 in laravel

Hi I would like to add another table to relate to the sentry users table. I can not seem to find any information on doing this. I would like to have a table that stores user information and recent activity, lets call it user_activity and have the…
arrowill12
  • 1,784
  • 4
  • 29
  • 54
0
votes
1 answer

Laravel 4 & Sentry 2 extending the sentry class

Having some issues trying to extend the sentry class in Sentry 2. Here is what I have done and what I am trying to do: Created a new facade: namespace pusers; use Illuminate\Support\Facades\Facade; class ADSentryFacade extends Facade { /** …
Silent
  • 438
  • 2
  • 6
  • 19
0
votes
1 answer

How to filter grouped routes in laravel based on the requested controller action?

I have a bunch of grouped resource controllers in my Laravel 4 app like this: Route::group(array('before'=>'auth'), function() { Route::resource('groups', 'GroupController'); Route::resource('users', 'UserController'); }); The two mentioned…
p13n
  • 859
  • 8
  • 31
0
votes
1 answer

Laravel Sentry restrict Edit permissions to Creator

I am using Laravel to build a simple Movie management System. When a User creates a Movie in my DB, I use the following public function store() { $input = Input::except('_token'); $id = Helpers::loggedInUser()->id; $input['creator_id'] =…
Stephenmelb
  • 457
  • 1
  • 3
  • 23
0
votes
0 answers

Laravel 4, Sentry 2: Permission levels possible?

Sentry permissions look like this inside the database table: {"admin":1,"create_news":1} Is there a way to not only use boolean values but levels? Such as 0, 1, 2, 3, 4. Sentry does not seem to support this by default. No idea why. The permission…
chris342423
  • 439
  • 1
  • 6
  • 22
0
votes
1 answer

Laravel 4 with Sentry 2 add user to a group on Registration

So, I'm trying to implement Sentry 2 with Laravel 4.1. I'm using this resource for it https://github.com/rydurham/L4withSentry Everything works fine, but now I want to assign user to a group automatically when he registers. From Sentry 2 Docs, …
tintinboss
  • 672
  • 1
  • 7
  • 25
0
votes
2 answers

Array to string conversion in Laravel 4 when logging in with Cartalyst Sentry

I have a problem. When I try to log in to my app, I get following message: ErrorException Array to string…
Cysioland
  • 1,126
  • 1
  • 9
  • 21
0
votes
1 answer

Laravel 4 Sentry 2 Authentication Check Without Using `catch`?

Suppose I have this code for Sentry authentication: try { $credentials = array( 'email' => Input::get('email'), 'password' => Input::get('password'), ); $user =…
user2002495
  • 2,126
  • 8
  • 31
  • 61
0
votes
0 answers

Login as desired user id in Laravel

Currently have a login merchant developed with Laravel Sentry packages. 3 Level of user type, super admin, partner and user. if i want to allow super admin have a feature of login as the partner and edit their panel, how can i do so? In short,…
1myb
  • 3,536
  • 12
  • 53
  • 73
0
votes
3 answers

Sentry 2 for laravel 4 ACL

Laravel 4 with Sentry 2 for ACL Note: I am using laravel functions for login, but need sentry only for ACL purpose, to check permissions Want to achieve this: if ( Sentry::getUser()->hasAnyAccess(['system']) ) { echo 'has access to system'; } but i…
0
votes
1 answer

Getting username based profile in laravel & sentry 2 instead of user id

I am using laravel. for authentication sentry 2. When the user is visiting at my site they are going to the page http://dolovers.com/profile/13 Here 13 is the user id. I am researching to have a better procedure to find user by its username and…
Sagiruddin Mondal
  • 5,407
  • 2
  • 29
  • 44
0
votes
1 answer

Laravel - The [login] attribute is required Sentry2 Auth

Any idea's why i get the following error The [login] attribute is required - what does it mean? when trying to login with Sentry 2 & Laravel.?
the_unforgiven_II
  • 361
  • 3
  • 10
  • 28
0
votes
1 answer

Laravel Twig - Accesing Sentry check function and user fields

I'm trying to check if Sentry user is logged in on twig template on a Laravel project, i'm using twigbridge. How do i? {% if Sentry::Check() == false %} This gives me: Unexpected token "punctuation" of value ":" ("end of statement block" expected)…
Ignus
  • 330
  • 3
  • 15