rydurham / l4withsentry Goto Github PK
View Code? Open in Web Editor NEWLaravel 4 and Sentry 2.0
Laravel 4 and Sentry 2.0
Perhaps the ability to change the email address should be added as well? It's easy enough to add in SentryUser and the edit form view, but kind of stuck on where to alter the validation rules so "required|email|unique:users,email,:id" can be used. ID being replaced with the current user id. Any thoughts?
I notice you are not using the restful routing in the GroupController so none of the routing work? How are you actually routing the Group stuff?
I have changed the GroupController to have getEdit but then I had to go to the views/groups/index and change to as the edit/id was in the wrong order. href='{{ URL::to('groups') }}/edit/{{ $group->id }}'">Edit
Thanks
[RuntimeException]
Failed to clone https://github.com/Seldaek/monolog.git, git was not found,
check that it is installed and in your PATH env.
Summary
The CSRF filter works properly when Session::token()
returns a different value than the form input token (via: Input::get('_token')
). The problem is, when the session has no token (guest access) and the form input has no token, then the CSRF filter malfunctions and does not throw and exception. In this case it should throw an exception but does not.
Cause
The cause seems to be the code on Line 108 of filters.php. If both values are null, then the comparison become them becomes true, even though we want the expression to be false.
Solution
The solution is to add a check that ensures that neither the Session token or the form token are null. If either is null, we throw an exception.
Not sure if this is the place to do it (first time!) but the remember me function on the login doesn't remember me when I log off and come to login again.
Also, it is an necessary to configure app/mail properly to made register fly.
in gmail: following work good for me:
'host' => 'smtp.gmail.com',
'port' => 465,
'encryption' => 'ssl',
'username' => 'your_username',
'password' => 'your_password',
Thanks
I don´t know if the problem is mine but after doing the download of L4withSentry and running "composer update" I have this RuntimeException:
Installing mockery/mockery (dev-master 23ca1a2)
Cloning 23ca1a274fb8fd175101574ac81cd1b82f3d0489
[RuntimeException]
Failed to clone https://github.com/padraic/mockery.git, git was not found,
check that it is installed and in your PATH env.
sh: 1: git: not found
After php composer.phar install" you'll receive this error:
[RuntimeException]
Could not scan for classes inside "app/libraries" which does not appear to be a file nor a folder
I removed "app/libraries" from composer.json and it works.
Just a little notification, I had to modify the needed version of the package "way/generators" in composer.json to have the project working.
"require-dev": {
"way/generators": "1.0.*@dev"
},
changed to
"require-dev": {
"way/generators": "2.*"
}
Will response an error "A group could not be found with ID [1]." when try to active account by http://l4a/users/activate/13/LQExzWiU1qHRuQSGU4vio83ay4qU4B5xZW9lJr4CeQ (received from mail):
Any change to get Sentry with Laravel 5?
Hi
Thank for your efforts, there is a minor issue in index, missing user register button though there is getRegister in user controller already.
There appears to be an error when you try and edit a group from the admin panel.
I just installed the repository locally and noticed most of the English language is incomplete, but Bulgarian isn't. Is there a quick way for me to fix this?
Thanks!
Bonjour,
Thank for your efforts !
In the class SentryUser, I think you should check the admin status before updating the group membership. Otherwise, member updated will clear all membership and fake requests could provide all memberships to user.
Cheers.
This project is not yet complete - I was pulled away before I could finish it. I hope to get back to it soon.
Illuminate \ Session \ TokenMismatchException
Installed a clean installation and can't seem to get it working with /register
Is anyone else getting the same error?
In the Layout (L4withSentry/app/views/layouts/default.blade.php) when a click to the email in the top-right it's give a route error in the line 59
<a href="/users/{{ Session::get('userId') }}">
I use this and it's work :
<a href="{{URL::to('users')}}/{{ Session::get('userId') }}">
but i see a problem when a click in the line of a user in the botton of "edit" in the administrations index but my low ability don't help me to correct.
line 27 of L4withSentry/app/views/users/index.blade.php
<button class="btn btn-default" type="button" onClick="location.href='{{ action('UserController@edit', array($user->id)) }}'">Edit</button>
Can someone help ?
Hi,
first of all thanks for this nice package. I wonder what would be best way to pull all of this codes in a workbench? To make a hybrid from this package and this
After altering this project a bit, I started running into a few weird issues with dropdowns while resizing and some other things until I updated my local to v3.1.1. You may want to update the project as well as a lot of other bugs have been flushed out since v3.0.1 in October.
What is Binput::get??
I can not find any reference to this in the Laravel doc, is this custom and where is it defined?
https://github.com/rydurham/L4withSentry/blob/master/app/controllers/UserController.php#L138
"error":{"type":"Symfony\\Component\\Debug\\Exception\\FatalErrorException","message":"Class 'Binput' not found"
Thanks
when I try to register a new user with a password less than minimum character, instead of showing error as alert , it show a page error with this title:
"InvalidArgumentException
Your [password] must be at least 6 characters."
could you please guide me how to resolve it?
- Removing laravel/framework (v4.1.30)
- Installing laravel/framework (v4.2.6)
No immediate errors noticed.
to rectify a problem in the groups/index.blade.php, i used the code in the groups/show.blade.php
<button class="btn btn-default" onClick="location.href='{{ action('GroupController@edit', array($group->id)) }}'">Edit</button>
Hi! after update of Laraverl 4.1, I go to users or groups in admin and it returns a FatalErrorException: Call to undefined method Illuminate\Routing\Route::getParameter() in app/filters.php line 49 $userId = $route->getParameter('users');
Thanks for the help.
A mailer to handle account related mail being sent to the user.
The auth filters should be updated to be more Sentry specific.
Hi,
I am getting this error while trying to migrate
$ php artisan migrate
PHP Fatal error: Class 'Patchwork\Utf8\Bootup' not found in E:\Localhost\Ampps\www\L4withSentry\boo
tstrap\autoload.php on line 46
And,
The composer update is running out of time and showing this error,
$ composer update
Loading composer repositories with package information
Installing dependencies (including require-dev)
Installing doctrine/common (dev-master ad26be7)
Cloning ad26be7787690d50d572d39a8d2ba5f1542a6d8f
[Symfony\Component\Process\Exception\ProcessTimedOutException]
The process "git clone "git://github.com/doctrine/common.git" "E:\Localhost\Ampps\www\L4withSen
try\vendor\doctrine/common" && cd /D "E:\Localhost\Ampps\www\L4withSentry\vendor\doctrine/commo
n" && git remote add composer "git://github.com/doctrine/common.git" && git fetch composer" exc
eeded the timeout of 300 seconds.
So can you suggest me the solution for this......Thank you
Is there any forecast for launch L5withSentry ?
I have convereted it to bootstrap 3 💃
is fulling working a few form i have to convert
I added Modal Windows for login and Register
I've already moved the code into a Laravel package. It needs a little more polish but is this something that would be of use to anyone else? This repository could stay as it is but then include the Service/Controller etc. layer inside the package?
After renaming "Admin" group into anything else access to Admin group is lost.
User is getting kicked out the system, it is possible to login again, but everything stays "locked" - keep getting redirects to login page with "Error: Group not found." message.
In app/controllers/UserController.php - and a couple of other places -
if ( $currentUser->hasAccess('admin') || $currentUser->getId() == $id)
should become
if ( Sentry::check() && ( $currentUser->hasAccess('admin') || $currentUser->getId() == $id))
according to http://docs.cartalyst.com/sentry-2/authentication/helpers#check-if-the-user-is-logged-in
Hey,
I am new to GitHub and found your code, which is GREAT!
I believe I have found an issue though.
After installing your code, which went smoothly, I keep getting the following error:
Result: database is indeed updated but I get the following error:
Error: You are not allowed to do that.
After quickly investigating it seems to be due the "userId" being NULL return from database update (Post route).
I could be wrong though (I am new to all this).
Thanks
Steps to reproduce:
Previous behavior:
I checked in version 1 of L4withSentry and it looks like the system properly handled this condition by showing an error that you do not have access to the user.
Notes:
It looks like the problem lies on lines 49 and 50 of app/controllers/UserController.php where the filters are applied to resource methods. The show and update resource methods did not have the inGroup:Admins filter applied.
Route::filter('auth', function()
{
if (Auth::guest()) return Redirect::route('login');
});
When Laravel 4.1 is released I will upgrade the project accordingly.
As per this Laracast: https://laracasts.com/lessons/auth-essentials
"preg_match(): Compilation failed: internal error: previously-checked referenced subpattern not found at offset 4246"
i use lavravel4 in lampp
this is my main.php
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.