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

8745 Commits

Author SHA1 Message Date
Peter Mein
46f3f95842 Added forum heading and followAfterReply 2015-12-17 10:51:44 +01:00
Peter Mein
b6464a719e Added missing import 2015-12-16 13:48:38 +01:00
Peter Mein
2e110b6ccb Added user online indicator to post 2015-12-16 13:43:46 +01:00
Franz Liedke
38cf04522e Clean up code 2015-12-11 21:16:38 +01:00
Franz Liedke
1ff5d94324 Merge pull request #24 from cmaas/master
Includes primary tag when starting a discussion under secondary tag.
2015-12-11 21:14:35 +01:00
ntaso
1680b1bfe9 Includes primary tag when starting a discussion under secondary tag. Fixes #424. 2015-12-11 17:55:02 +01:00
Franz Liedke
79c1fdf5db Don't return from inside a finally block
This is not supported in HHVM:
https://github.com/facebook/hhvm/issues/5162

Reported on the forum:
https://discuss.flarum.org/d/1390-migrating-from-php-5-6-x-to-php-7-0-x/7
2015-12-10 11:35:51 +01:00
Toby Zerner
448870721f Fix admin login 2015-12-06 08:47:51 +10:30
Toby Zerner
94a1bbf9ef Fix tests and CS 2015-12-05 22:31:33 +10:30
Toby Zerner
f3e0fd5903 Allow username capitalisation to be changed
See https://discuss.flarum.org/d/1573-uppercase-lowercase-username-flagged-as-taken
2015-12-05 15:43:40 +10:30
Toby Zerner
f25bd6d196 Add base OAuth2 controller 2015-12-05 15:25:10 +10:30
Toby Zerner
b4d3f2e648 Garbage-collect email/password/auth tokens. closes #217 2015-12-05 15:24:05 +10:30
Toby Zerner
09a281dbc5 Clean up some method arguments 2015-12-05 15:22:42 +10:30
Toby Zerner
b5133fab8f Log in immediately after registration
Newly-created accounts are allowed to log in straight away, but they still have the permissions of a guest until they've confirmed their email address. Instead of showing a success message after registration, we reload the page since they're already logged in.

Still todo: show a message explaining that they need to verify their email address to do anything, and allow it to be resent.
2015-12-05 15:22:25 +10:30
Toby Zerner
f81c489eee Improve LoginButton styles, make popup window smaller 2015-12-05 15:19:24 +10:30
Toby Zerner
cda00550aa Rework sessions, remember cookies, and auth again
- Use Symfony's Session component to work with sessions, instead of a custom database model. Separate the concept of access tokens from sessions once again.
- Extract common session/remember cookie logic into SessionAuthenticator and Rememberer classes.
- Extract AuthenticateUserTrait into a new AuthenticationResponseFactory class.
- Fix forgot password process.
2015-12-05 15:11:25 +10:30
Toby Zerner
8a698d14a6 Add ConfirmPasswordModal translations 2015-12-03 21:08:09 +10:30
Toby Zerner
0aef9df793 Add CSRF token to auth request 2015-12-03 21:00:32 +10:30
Toby Zerner
3f8cdd1e7e Fix case-sensitive class names 2015-12-03 18:29:00 +10:30
Toby Zerner
8e38197756 Allow forum to be taken offline via config 2015-12-03 17:56:27 +10:30
Toby Zerner
7498f488f5 Fix previous commit 2015-12-03 17:56:04 +10:30
Toby Zerner
d55ba2c483 Merge branch 'sudo-mode'
# Conflicts:
#	CHANGELOG.md
2015-12-03 15:12:51 +10:30
Toby Zerner
32e9c0587c Overhaul sessions, tokens, and authentication
- Use cookies + CSRF token for API authentication in the default client. This mitigates potential XSS attacks by making the token unavailable to JavaScript. The Authorization header is still supported, but not used by default.
- Make sensitive/destructive actions (editing a user, permanently deleting anything, visiting the admin CP) require the user to re-enter their password if they haven't entered it in the last 30 minutes.
- Refactor and clean up the authentication middleware.
- Add an `onhide` hook to the Modal component. (+1 squashed commit)
2015-12-03 15:11:57 +10:30
Toby Zerner
1c094c175e Fix crash when loading notifications in some instances
Specifically, the crash would occur when the first notification had a subject without a discussion relationship (e.g. the Subscriptions extension's newPost notification, where the subject itself was a discussion). Instead of simply eager loading the nested subject.discussion relationship, we load discussions manually instead.
2015-12-03 15:10:05 +10:30
Toby Zerner
127b4a7607 Fuzzy-match global forum permissions
This means that the "Start a Discussion" button will still be enabled if the user is not allowed to start globally, but only in certain tags.

Also add some other stuff to the changelog.

closes #640
2015-12-03 15:08:28 +10:30
Toby Zerner
d4e52a6ad8 Various user interface tweaks 2015-12-03 15:02:52 +10:30
Toby Zerner
8664a5e0b0 Fix notifications icon/badge color for dark header 2015-12-03 15:02:29 +10:30
Toby Zerner
11ff30cfdc Tweak admin side-pane styles
Position the side-pane absolutely when scrolled to the top so that it does not disjoin from the header in Safari.
2015-12-03 15:02:07 +10:30
Toby Zerner
95472a5d65 Fix some issues with dropdown positioning 2015-12-03 14:51:55 +10:30
Toby Zerner
d1d33cba44 Clean up 2015-12-03 14:51:35 +10:30
Toby Zerner
d5970ee4a0 Allow the first post to be hidden 2015-12-01 16:42:49 +10:30
Toby Zerner
88f03f1d95 Truncate long title controls on mobile 2015-12-01 11:48:54 +10:30
Toby Zerner
d36d3c013a Merge pull request #648 from dcsjapan/adjust-key
Add third-level namespacing to deleted_user_text
2015-11-30 15:28:39 +10:30
Toby Zerner
998b016bc4 Merge pull request #56 from dcsjapan/alphabetize
Clean up locale files
2015-11-30 15:28:34 +10:30
dcsjapan
784ac722b7 Clean up locale files
- Adjusts namespacing in support of flarum/core#648.
- Corrects key alphabetization in a few locale files.
2015-11-30 11:23:18 +09:00
dcsjapan
b4926b532c Add third-level namespacing to deleted_user_text 2015-11-30 11:17:11 +09:00
Toby Zerner
c7c83ef771 Merge pull request #45 from dbohn/master
Added language key for allowing edit of tags.
2015-11-30 09:13:02 +10:30
Toby Zerner
1e6ab2c89d Merge pull request #23 from dbohn/master
Fixing Issue flarum/core#330
2015-11-30 09:12:28 +10:30
David Bohn
5c52f3fae0 Added Change Tags Item to PermissionGrid
Fixed missing bower install and added TODO for translation

Added check to allow edit of tags for author in backend

Fixed code style, added translation key

Extracted tag permissions into method and restored original extension.js

Adressing chaining of policy issue
2015-11-29 23:19:18 +01:00
Toby Zerner
92eefceef1 Merge pull request #55 from dcsjapan/fix-translation
Fix translations
2015-11-29 21:14:04 +10:30
dcsjapan
ebb08d8596 Fix translations
- Fixes a copypasta translation in Suspend.
- Thanks to @maelsoucaze for proofreading, as always!
2015-11-29 16:51:29 +09:00
Toby Zerner
b7925e3242 Merge pull request #1 from dcsjapan/extract-translations
Extract translations
2015-11-29 17:06:47 +10:30
Toby Zerner
b854398717 Merge pull request #54 from dcsjapan/extract-akismet
Add translations for Akismet
2015-11-29 17:06:38 +10:30
dcsjapan
5099791b55 Add translations for Akismet
- Adds resources to support flarum/akismet#1.
2015-11-29 15:02:59 +09:00
dcsjapan
4d3df2eaf7 Extract translations
- Adds app.translator calls for forum and admin interfaces.
- Locale file to follow later.
2015-11-29 15:01:42 +09:00
Toby Zerner
a4669d7c70 Merge pull request #1 from dcsjapan/extract-translations
Extract translations
2015-11-29 15:17:47 +10:30
Toby Zerner
8831566a09 Merge pull request #52 from dcsjapan/extract-approval
Add translations for Approval and Suspend
2015-11-29 15:17:20 +10:30
Toby Zerner
999135ea10 Merge pull request #53 from dcsjapan/extract-auth
Add translations for Flarum Auth extensions
2015-11-29 15:17:09 +10:30
dcsjapan
fd13c4609e Add translations for Flarum Auth extensions
- Adds resources to support flarum/auth-facebook#1.
- Adds resources to support flarum/auth-github#1.
- Adds resources to support flarum/auth-twitter#1.
2015-11-29 13:14:40 +09:00
dcsjapan
a626f6dbb5 Add translations for Approval and Suspend
- Adds resources to support flarum/approval#1.
- Adds resources to support flarum/suspend#2.
- Updates a comment in core language resources.
2015-11-29 12:15:44 +09:00