1
0
mirror of https://github.com/flarum/core.git synced 2025-07-16 06:16:23 +02:00
Commit Graph

2694 Commits

Author SHA1 Message Date
def0023382 Align icons & text in SideNav and Dropdown (#1544) 2018-09-22 21:35:45 +09:30
e1d12a4295 Bundled output for commit e407c9472a [skip ci] 2018-09-22 04:58:46 +00:00
e407c9472a Clean composer promises (#1439)
* Remove unused login promise code

* Make promise usage consistent across composer action methods
2018-09-22 14:25:19 +09:30
d70a75a2d8 Bundled output for commit 8107d9787c [skip ci] 2018-09-22 04:19:52 +00:00
0c429c1b9f Auth token and avatarUrl security improvements (#1514)
* Remove AbstractOAuth2Controller

There is no reason to provide an implementation for a specific oAuth2
library in core; it's not generic enough (eg. auth-twitter can't use it).

This code could be moved into another package which auth extensions
depend on, but it's a negligible amount of relatively simple code that
I don't think it's worth the trouble.

* Introduce login providers

Users can have many login providers (a combination of a provider name
and an identifier for that user, eg. their Facebook ID).

After retrieving user data from a provider (eg. Facebook), you pass the
login provider details into the Auth\ResponseFactory. If an associated
user is found, a response that logs them in will be returned. If not, a
registration token will be created so the user can proceed to sign up.
Once the token is fulfilled, the login provider will be associated with
the user.
2018-09-22 13:48:27 +09:30
8107d9787c Add migration helper to drop columns 2018-09-22 13:45:41 +09:30
698436e7b0 Make "own" permissions depend on the user's ability to reply
Permission to rename/hide/edit one's own discussion/post is only granted
if the user has permission to reply to the discussion. This makes sense
if you think of these actions as forms of "replying" to a discussion.

Fixes #1419 because suspended users do not have permission to reply to
discussions, therefore they will not be granted these "own" permissions.
2018-09-22 12:15:46 +09:30
9fabcff497 Fix tests 2018-09-22 00:40:19 +02:00
712d1cdd1e Display only exception messages during booting
By not letting PHP render the stack trace, we prevent displaying
sensitive information (such as the database credentials). Instead,
we display a simple line with the exception message.

In the console, the full exception can still be shown, as that is
a tool only for forum admins anyway.

Fixes #1421.
2018-09-21 23:33:28 +02:00
d35532b744 Boot Flarum app in Server classes
This is in preparation for fixing #1421 - it allows us to
encapsulate the exception handling in the server classes, so that
we can keep the skeleton (flarum/flarum) lean.
2018-09-21 23:30:14 +02:00
5fa9e1a8a2 Remove references to deleted property 2018-09-21 12:29:16 +02:00
12ac907404 Bundled output for commit bd0b2a2f1d [skip ci] 2018-09-21 05:07:46 +00:00
bd0b2a2f1d Fix tests 2018-09-21 14:32:41 +09:30
92e8990e55 Apply fixes from StyleCI (#1574)
[ci skip] [skip ci]
2018-09-21 14:28:02 +09:30
ff18859f2e Remove the "debug" button from request error alerts
Using the browser's console to debug failed requests is much more powerful
2018-09-21 14:27:39 +09:30
5cda25c8b6 Make registration errors still work properly when debug mode is on 2018-09-21 14:18:17 +09:30
5e1e7b2171 Bundled output for commit 50d2243fba [skip ci] 2018-09-21 02:30:05 +00:00
50d2243fba Sort user discussion list properly 2018-09-21 11:55:00 +09:30
fc440380d6 Bundled output for commit 354babdc2e [skip ci] 2018-09-21 02:09:25 +00:00
354babdc2e Fix installation command 2018-09-21 11:32:46 +09:30
288266d85a Update TextFormatter deprecated API 2018-09-21 11:23:24 +09:30
aab06e0741 Live output of migrator notes 2018-09-21 11:22:51 +09:30
2d3f1d9f5c Fix notifications crash
When loading notifications, $this->type was null and thus array_get
was returning an array instead of null. I assume this issue was
introduced in a Laravel version upgrade? Anyway, this fixes it.
2018-09-21 11:22:26 +09:30
1114de5338 Fix group badge misalignment if there is no group icon 2018-09-21 11:20:54 +09:30
3a7f88b74c Use default system font instead of Open Sans 2018-09-21 11:20:17 +09:30
4690812402 Add "tiny" preset for LoadingIndicator
This is used in various places but had not been added since presets were
removed from Spin.js in a recent version upgrade.
2018-09-21 11:19:32 +09:30
c27c968837 Fix regression introduced by #1543
The Page component's config method wasn't being called, therefore the
bodyClass would not be applied.
2018-09-21 11:17:54 +09:30
52b5bdcf4e Revert "Frontend extender: Remove route registration"
This reverts commit df6f10da20.
2018-09-21 09:05:45 +09:30
5d44b6f259 Use container events as an alternative to the ConfigureMiddleware event (#1462)
By moving the DispatchRoute middleware into an `afterResolving`
callback, this will allow a new Middleware extender to add a `resolving`
callback to the appropriate container binding, removing the need for the
ConfigureMiddleware event.

The ConfigureMiddleware event has been deprecated and should be removed
in beta 9.
2018-09-16 21:21:13 +02:00
aae8aa4a51 Travis: Add table prefix to build matrix (#1568)
Fixes #1564.
2018-09-16 20:59:40 +02:00
386663ef53 Bundled output for commit ac4e4e15ff [skip ci] 2018-09-16 18:51:11 +00:00
ac4e4e15ff Merge pull request #1344 from flarum/1236-database-changes
Database changes
2018-09-16 20:44:29 +02:00
a7f4297214 Fix query error 2018-09-15 12:44:59 +09:30
cd4d22e42b Inline permissions migration 2018-09-15 12:40:32 +09:30
30bc979fcb Use instance variable directly instead of passing it around 2018-09-07 01:40:31 +02:00
df6f10da20 Frontend extender: Remove route registration
This can be achieved using the Route extender, which is more
flexible, as it does not necessary connect the URL with the current
frontend's router.

(Example use-case: The ext-embed frontend will be a new frontend,
however any routes using this frontend will be part of the forum
route group.)

Refs #851.
2018-09-07 01:40:31 +02:00
c53ec59d56 Frontend extender: Route to correct frontend
So far, we always added routes configured via this extender to the
forum frontend. Not correct.
2018-09-07 01:02:13 +02:00
f5d3ab0da2 RouteHandlerFactory: Refactor frontend parameter
By passing in just the frontend identifier, we can hide some of the
implementation details, in this case the identifier of the Frontend
instance in the IoC container.
2018-09-07 01:00:56 +02:00
7989f84299 flarum info: Try to fix STDERR redirection for Windows
See the following articles for more information:
- https://www.24k.com.sg/blog-27.html
- https://support.microsoft.com/en-us/help/110930/redirecting-error-messages-from-command-prompt-stderr-stdout

Refs #1562.
2018-09-07 00:25:26 +02:00
5633106a7c flarum info: Extract extension table to function 2018-09-04 00:38:08 +02:00
58afd2608d flarum info: Tweak output styling 2018-09-04 00:32:54 +02:00
12dfe12edb InfoCommand improvements (#1562)
* Ignore error output of 'git rev-parse HEAD'
* Organize extension information in a table
2018-09-04 00:24:07 +02:00
ea207241f3 Use correct method from contract 2018-09-03 23:55:16 +02:00
8e331d5817 Add 'oldUsername' to User\Event\Renamed (#1563) 2018-09-03 22:42:30 +02:00
e03cc3d9c9 Apply fixes from StyleCI (#1561)
[ci skip] [skip ci]
2018-09-01 23:35:37 +02:00
3aa0ce9893 flarum info: Display warning when in debug mode
Refs #1421.
2018-09-01 16:57:44 +02:00
c655f11d43 Load per-site extenders, if available
Closes #1559.
2018-09-01 16:27:52 +02:00
e8c779fcf4 Frontend extender: Work without extension, too 2018-09-01 16:15:02 +02:00
a49f2204ab Bundled output for commit a848949c84 [skip ci] 2018-08-25 10:56:59 +00:00
a848949c84 Update JS tooling 2018-08-25 20:18:59 +09:30