1
0
mirror of https://github.com/flarum/core.git synced 2025-08-24 09:03:05 +02:00
Commit Graph

8781 Commits

Author SHA1 Message Date
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
dcsjapan
b6e5dd0726 Extract translations
- Adds app.translator calls for forum and admin interfaces.
- Locale file to follow later.
2015-11-29 12:13:43 +09:00
Toby Zerner
86574d1039 Merge pull request #2 from dcsjapan/extract-translations
Extract translations
2015-11-29 13:00:36 +10:30
dcsjapan
e3de8a5a23 Extract translations
- Adds app.translator calls for forum and admin interfaces.
- Locale file to follow later.
2015-11-29 11:24:14 +09:00
Toby Zerner
03a0956cf2 Merge pull request #51 from dcsjapan/double-quotes
Adds required double quotes to a translation.
2015-11-28 19:42:10 +10:30
dcsjapan
a4a538aa8a Adds a missing translation text. 2015-11-28 17:44:52 +09:00
dcsjapan
3df88d6e33 Adds required double quotes to a translation. 2015-11-28 17:38:21 +09:00
Toby Zerner
91f434971c Merge pull request #50 from dcsjapan/leftover-translations
Extract leftover strings
2015-11-28 18:54:28 +10:30
Toby Zerner
c9ced9946d Merge pull request #645 from dcsjapan/leftover-translations
Extract leftover strings
2015-11-28 18:54:27 +10:30
dcsjapan
29dc0d5021 Extract leftover strings
- Adds resources in support of flarum/core #645.
- Also fixes a few comments in the core and Tags resources.
2015-11-28 17:19:53 +09:00
dcsjapan
d462b36d71 Extract leftover strings
Extracts strings that were missed previously in:
- Dashboard page of admin interface.
- Edit Custom CSS modal of admin interface.
- Settings modal of admin interface.
- Post activity list on user page of forum UI.
Hopefully there aren't any more!
2015-11-28 17:14:22 +09:00
Toby Zerner
d6571ae00a Merge pull request #644 from dcsjapan/update-locale-template
Update locale file template
2015-11-28 17:33:53 +10:30
dcsjapan
1238c95118 Update locale file template
Adjusts comments to match current english locale files.
2015-11-28 15:55:21 +09:00
Toby Zerner
35ec2942fd Merge pull request #48 from dcsjapan/i18n-doc-reorg
English revamp for i18n docs
2015-11-28 16:11:19 +10:30
dcsjapan
42eb6e3c43 English revamp for i18n docs
- Moves `ref` below `email`, adjacent to `group`.
- Deletes block comment for `email` namespace.
- Adds detail to block comment for `group`.
- Changes "string" to "translation" in all files.
2015-11-28 13:48:02 +09:00