Toby Zerner
8f387bbd52
Allow formatter to be used for things other than post formatting
2015-09-18 13:29:43 +09:30
Toby Zerner
c4dc1a5ee2
Allow settings to be deleted using LIKE
...
Also give migrations access to the SettingsRepository
2015-09-18 13:28:38 +09:30
Toby Zerner
ca09e834b1
Add events for serializing/unserializing config values
2015-09-18 13:16:35 +09:30
Toby Zerner
f4a4ed8b49
Extend social login access token expiry
2015-09-17 12:57:22 +09:30
Toby Zerner
dbd33f687c
Remove "custom" home page input
...
Also add an API to let extensions define additional default route
options.
Allowing default routes with parameters (e.g. /d/123) is very difficult
because of the way Mithril routing works, and it doesn't have a
convincing use-case to justify the trouble. So I've removed the custom
input altogether.
closes #427
2015-09-17 12:56:39 +09:30
Toby Zerner
e038c5c9d9
Add migration generator
2015-09-17 12:16:38 +09:30
Toby Zerner
7fb582e8d7
Namespace migrations to avoid potential conflicts
...
Core migrations are under the Flarum\Migrations\Core namespace.
Extension migrations must be under the
Flarum\Migrations\{ExtensionName} namespace.
closes #422
2015-09-17 08:54:31 +09:30
Daniel Klabbers
84e670082b
fixed flarum/core#489 missing meta description from admin area
2015-09-16 21:43:53 +02:00
Franz Liedke
ad060126ae
Small cleanup in extension manager
2015-09-16 08:56:27 +02:00
Davide Bellini
fc8dfd8893
Changed default Admin password
...
Default Admin password doesn't pass the new validation rule (min 8 chars)
See: cbcad27679 (diff-2e6d4ed85cd06d3e11f7f8428746214eR126)
2015-09-15 17:52:33 +02:00
Toby Zerner
701ad0a977
Add API to set asset compiler filename
2015-09-15 21:20:32 +09:30
Franz Liedke
cd5f5515e2
Try to make PHP extension requirement message clearer
2015-09-15 09:18:26 +02:00
Toby Zerner
d8c2cbc265
Mark all notifications with the same subject as read
2015-09-15 16:20:22 +09:30
Toby Zerner
f6ad891850
Rename ExternalAuthenticator to Authenticator
2015-09-15 16:03:10 +09:30
Toby Zerner
e524c59f97
Improve external authentication API
...
Some providers (e.g. Twitter) don't expose user email addresses, so it
turns out we can't use that as the sole form of identification/account
matching.
This commit introduces a new `auth_tokens` table which stores arbitrary
attributes during the sign up process. For example, when Twitter is
authenticated, a new auth token containing the user's Twitter ID will
be created. When sign up is completed with this token, that Twitter ID
will be set as an attribute on the user's account.
2015-09-15 15:56:48 +09:30
Toby Zerner
6beb4fe898
Add external authenticator (social login) API
...
Allows registrations to be completed with a pre-confirmed email address
and no password.
2015-09-15 11:27:31 +09:30
Toby Zerner
cbcad27679
Improve installer validation
...
Very rough, but works for now. The basic premise being that we need to
collect all user data before we proceed with installation.
2015-09-14 18:13:24 +09:30
Toby Zerner
60323e0cf9
Bump version number
2015-09-14 16:32:31 +09:30
Toby Zerner
8cccaaaf6b
Improve API error handling
...
- Change 'path' key to 'source.pointer', as per spec
- Add 500 error detail if debug mode is on
2015-09-14 15:40:07 +09:30
Toby Zerner
190aa925ac
Set cookies to be HTTP only
2015-09-14 14:40:05 +09:30
Toby Zerner
60b19efe0a
Password is not necessarily required
...
e.g. on my LAMP setup, I sometimes use a MySQL account without a
password
2015-09-14 14:39:18 +09:30
Franz Liedke
e7d7df3b0c
Cleanup
2015-09-11 09:16:53 +02:00
Franz Liedke
3b5a01e603
Implement more validation in installer
2015-09-11 09:16:43 +02:00
Franz Liedke
902d01712b
Remove pointless JSON-API action base class
...
Cleanup related to #118 .
2015-09-09 09:04:49 +02:00
Franz Liedke
502a3787d5
Move remaining extension handling to middleware
2015-09-09 08:56:11 +02:00
Franz Liedke
b8ac49ffcc
Move exception handling for Flarum exception classes to middleware
...
Related to #118 .
2015-09-08 22:36:32 +02:00
Franz Liedke
4b4cea4d87
Implement interface to serialize exceptions to JSON-API format
...
Related to #118
2015-09-08 22:35:39 +02:00
Toby Zerner
8c4e095f23
Allow first post to be hidden/restored
...
Anti-spam extensions may automatically hide the first post in a
discussion, and thus we had to implement smarter permissions so
discussions with zero posts wouldn't be visible to users other than the
author/mods. This change allows those hidden posts to be restored again.
2015-09-07 16:03:45 +09:30
Toby Zerner
84012ca2fd
Preliminary implementation of master API keys
...
Part of #205
2015-09-07 08:37:33 +09:30
Toby Zerner
6ee9412f35
Prevent invalid LESS from crashing application
...
Failure is silent for now... The default LESS will compile without the
invalid customisations. Not sure if we should log an error somewhere
and display it on the admin page?
closes #400
2015-09-04 22:33:26 +09:30
Toby Zerner
478ca90c31
Fallback to English if system-wide default_locale doesn't exist
2015-09-04 22:19:28 +09:30
Toby Zerner
1f8f79d272
Don't require database password confirmation
2015-09-04 21:45:52 +09:30
Franz Liedke
db8b9ed0c0
Installer: Fix password confirmation
2015-09-04 12:11:13 +02:00
Franz Liedke
a3d59977b3
Clean up code
2015-09-04 12:05:12 +02:00
Franz Liedke
211d2d25cd
Merge pull request #413 from WinterSilence/patch-2
...
Update RouteCollection::getPath
2015-09-04 12:03:51 +02:00
Franz Liedke
42f1abacaf
Ask for password confirmation in web installer, too
...
Closes #405 .
2015-09-04 12:00:03 +02:00
Franz Liedke
b26c67dd3c
Require password confirmation in console installer
...
Refs #405 .
2015-09-04 11:57:11 +02:00
Toby Zerner
fc7fc41383
Prevent error when hiding/restoring a post with a deleted user
2015-09-04 13:51:13 +09:30
Toby Zerner
ece23de750
API: Add User::hasPermissionLike() and User::getPermissions()
2015-09-04 12:23:50 +09:30
Toby Zerner
4705600d47
Fix typehint
2015-09-04 12:23:27 +09:30
Toby Zerner
8423de754c
Fix bad query in isVisibleTo
2015-09-04 12:23:17 +09:30
Toby Zerner
b597e6f8f6
Don't load a custom relation if the relation is already loaded
2015-09-04 12:22:49 +09:30
Toby Zerner
276334ec52
Improve some post/discussion permission logic
...
- Allow users to see their own posts, even if they have been hidden by
someone else
- Don't require hiding a post to be necessarily attributed to a user
- Hide discussions with zero posts, unless the user can edit posts, or
they are the discussion author
2015-09-04 12:22:27 +09:30
Toby Zerner
f0186d7674
API: Add typehints
2015-09-04 12:18:09 +09:30
Daniel Klabbers
0413daab74
call to $this-> assertValidPassword from static context
2015-09-04 00:00:24 +02:00
Franz Liedke
21dd516eaa
Fix code style issues
2015-09-03 08:48:26 +02:00
Franz Liedke
3c9d851889
Check prerequisites in console installer, too
2015-09-03 08:42:16 +02:00
Franz Liedke
942db77416
Extract installation prerequisites into composable classes and use those in the web-based installer
2015-09-03 08:23:34 +02:00
Anton
04db806995
Update RouteCollection.php
2015-09-02 19:22:40 +03:00
Anton
f3bc7d1c23
Update RouteCollection::getPath
...
This version work faster - old code create closure at every calling getPath
2015-09-02 10:58:44 +03:00