Commit graph

20 commits

Author SHA1 Message Date
Laravel Shift
00f24a5c12 Laravel 5.2 Update (#106)
* Adopt PSR-2 coding style

The Laravel framework adopts the PSR-2 coding style in version 5.1.
Laravel apps *should* adopt this coding style as well. Read the
[PSR-2 coding style guide][1] for more details and check out [PHPCS][2]
to use as a code formatting tool.

[1]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md
[2]: https://github.com/squizlabs/PHP_CodeSniffer

* Adopt PHP short array syntax

Laravel 5 adopted the short array syntax which became available in
PHP 5.4.

* Remove SelfHandling from Jobs

Jobs are self handling by default in Laravel 5.2.

* Add new exceptions to `$dontReport` property

* Shift core files

* Shift Middleware

Laravel 5.2 adjusts the `Guard` object used within middleware. In
addition, new `can` and `throttles` middleware were added.

* Shift Input to Request facade

Laravel 5.2 no longer registers the `Input` facade by default. Laravel
now prefers using the `Request` facade or the `$request` object within
*Controllers* instead. Review the [HTTP Requests][1] documentation for
more details.

[1]: https://laravel.com/docs/5.2/requests

* Shift configuration

Laravel 5.2 introduces the `env` app configuration option and removes
the `pretend` mail configuration option. In addition, a few of the
default `providers` and `aliases` bindings were removed.

* Shift Laravel dependencies

* Shift cleanup

* Updated composer.lock

* Updated Middleware to 5.2

* Config update for Laravel 5.2

* [Laravel 5.2] Updated validation strings

* Updated auth config

* Updated to use middleware groups

* Added laravel 5.2 sessions migration
2016-09-29 23:26:31 +01:00
Peter Deltchev
9a9ac7e5a1 Lots of minor code cleanup. 2016-06-05 23:15:56 -07:00
Peter Deltchev
5451294dfc Replaced Pony.fm's profiler with @barryvdh's Laravel Debugbar. 2016-02-16 02:53:28 -08:00
Scrutinizer Auto-Fixer
d655d0a151 Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2016-01-18 01:21:39 +00:00
Adam Lavin
3399f3e223 Added support for authorising oauth2 endpoints with the bearer header 2016-01-01 21:11:28 +00:00
Adam Lavin
6b026e8551 Remove reliance on facades/helpers, and added in a typehint, in AuthenticateOAuth middleware. 2016-01-01 20:58:52 +00:00
Adam Lavin
991f8df661 Security: Fix auth.outh2 generating a user session
If you are logged out of Pony.fm, made a request to an endpoint using this middleware in the browser with an access token with the appropriate scope, then went back to Pony.fm, you'd be logged in as the owner of the access token.
2016-01-01 20:55:00 +00:00
Peter Deltchev
5ff04ff08d Moved all database models into their own namespace. 2015-12-31 16:24:33 -08:00
Peter Deltchev
3b1fa792cf #29: This works because the only disabled accounts right now are merged ones. 2015-12-29 13:32:14 -08:00
Peter Deltchev
622dc2d577 #29: Implemented the auth:merge-duplicates CLI script to reconcile duplicate accounts. 2015-12-29 08:54:08 -08:00
Peter Deltchev
ac6ce4bbb4 #8: Implemented auto-publishing and lots of optional fields for the upload endpoint. 2015-12-26 03:40:47 -08:00
Peter Deltchev
4d119ff758 #8: Implemented the track upload API. 2015-12-24 04:14:55 -08:00
Adam Lavin
3ba8467870 Return error message in profile exception handler response 2015-11-30 01:00:20 +00:00
Peter Deltchev
395a894bdd Removed obsolete CSRF validation middleware. CSRF tokens are validated on all requests. 2015-11-23 21:47:26 -08:00
Peter Deltchev
c4e31a6431 #2, #20: Laid the groundwork for an admin area. Includes the addition of Laravel's authorization system. 2015-11-23 21:19:23 -08:00
Peter Deltchev
ed0a5fb8ac Licensed Pony.fm under the GNU Affero General Public License (AGPL). 2015-10-24 22:17:45 -07:00
Peter Deltchev
a4c24a7d64 Updated Pony.fm's PHP namespace to Poniverse\Ponyfm. 2015-10-23 18:22:14 -07:00
Peter Deltchev
97681212a4 Updated the SPA profiler as Laravel 5 middleware. 2015-09-20 01:47:24 -07:00
Kelvin
ec93ebb8fe Add middleware 2015-09-06 16:57:20 +01:00
Kelvin Zhang
292d476210 Initial L5.1 commit 2015-08-30 12:26:03 +01:00