Commit Graph

1232 Commits

Author SHA1 Message Date
ReAnzu
2a69f0193f server/auth: add token authentication
* Users are only authenticated against their password on login,
  and to retrieve a token
* Passwords are wiped from the GUI frontend and cookies
  after login and token retrieval
* Tokens are revoked at the end of the session/logout
* If the user chooses the "remember me" option,
  the token is stored in the cookie
* Tokens correctly delete themselves on logout
* Tokens can expire at user-specified date
* Tokens have their last usage time
* Tokens can have user defined descriptions
* Users can manage login tokens in their account settings
2018-03-25 22:23:29 +02:00
rr-
e35e709927 docs/install: use example.com for example domain 2018-03-22 09:42:58 +01:00
Michael Serajnik
a98ca55391 client/css: optimize help view margins 2018-03-10 17:45:37 +01:00
Michael Serajnik
db9132432b client/css: add default margins 2018-03-10 17:45:37 +01:00
Michael Serajnik
23a28ce69c client/css: make tab navigations scrollable on smaller screens 2018-03-10 17:45:37 +01:00
Michael Serajnik
a962bb351a client/css: refine mobile sidebar styling 2018-03-10 17:45:37 +01:00
Michael Serajnik
a08c7d65da client/css: add scrollbar styling 2018-03-10 17:45:37 +01:00
Michael Serajnik
7596f9042c client/css: remove margin on empty post container 2018-03-10 17:45:37 +01:00
Michael Serajnik
9b10d2bebf client/css: add default font sizes for headings 2018-03-10 17:45:37 +01:00
Michael Serajnik
e15dffa1dc client/css: change container paddings to be viewport size independent 2018-03-10 17:45:37 +01:00
Michael Serajnik
4ce29cf222 client/css: change font size declarations to em 2018-03-10 17:45:37 +01:00
Michael Serajnik
26a1451ff6 client/css: improve mobile styling 2018-03-10 17:45:37 +01:00
ReAnzu
c770ad8f28 client/posts: fix copy tags list of string values error #153 2018-03-09 07:53:54 +01:00
ReAnzu
3f52aceca4 server/users: harden password hashes
- Changed password setup to use libsodium and argon2id (regular SHA256
  hashing for passwords is inadequate as modern GPU's can hash generate
  billions of hashes per second).
- Added code to auto migrate old passwords to the new password_hash if
  the existing password_hash matches either of the legacy password
  generation schemes (SHA1 or SHA256).
- Added migration to support new password_hash format length
- Added column password_revision. This field will default to 0, which
  all passwords will have till they're updated. After that each password
  hash method has a revision.
2018-03-08 23:40:47 +01:00
ReAnzu
7519e071e7 server/posts: deleting a post purges its artifacts
Specifically, its thumbnail and post source.
2018-03-08 23:37:37 +01:00
ReAnzu
12ec43f098 server/posts: auto convert GIFs to WEBMs/MP4s
- Default setting is false for both conversions, as this will require
  additional resources of the server, but is bandwidth friendly for
  viewers
- WEBM conversion is slow, but better quality than MP4 conversion with
  a typically smaller file size
- Tags are copied over from the original upload
- Snapshots are generated for the new auto posts
2018-03-08 07:48:45 +01:00
ReAnzu
4ff8be6a2f server/posts: ignore ffmpeg warnings
Poorly formatted MP4 and WEBM sources can cause ffmpeg to throw a lot
of warnings. However when there is byte ouptut, the generated thumbnail
is valid. Add a bypass for the resize_fill function to allow ffmpeg to
error.
2018-03-08 07:48:44 +01:00
ReAnzu
4b3529272e server/users: let administrators add new users
* Added functionality for administrators to directly add users to the
  application
* Added permission users:create:any to handle level that users are
  allowed to create other users
* Moved old permission users:create to users:create:self
2018-03-07 21:30:24 +01:00
rr-
a1fbeb91a0 server/users: fix checking passwords with colons 2018-02-10 14:04:02 +01:00
rr-
59d8b0d4c5 client: update dependencies 2018-01-06 21:35:53 +01:00
Michael Serajnik
69421464f6 client/posts: override resize mode in home view 2017-12-15 19:11:39 +00:00
Michael Serajnik
85cb3d4702 client/help: fix spelling issues 2017-12-02 23:38:22 +01:00
rr-
f8c7375b01 server/tags: allow uppercase tag category colors
i.e. colors such as "#FF0000"
2017-10-08 21:38:38 +02:00
rr-
cdf454818c client: widen search inputs to match post search 2017-10-02 21:08:13 +02:00
rr-
4848bee5e3 client/tags: remove unused cruft 2017-10-01 22:09:00 +02:00
rr-
36698cddc2 client/posts: fix promise chaining 2017-10-01 22:00:42 +02:00
rr-
1c4c5c5f91 remove tags.json 2017-10-01 21:48:00 +02:00
Robin Appelman
253e28c1b5 client/posts: add shortcut for deleting posts 2017-09-23 20:05:57 +02:00
Robin Appelman
6d78c5e55d client/posts: fix keyboard nav to next/prev post
The exact search query was discarded.
2017-09-23 16:10:03 +02:00
rr-
795891767e client/home: fix featured WEBMs being unclickable 2017-09-09 23:42:00 +02:00
rr-
234afc8dfe client: update dependencies 2017-08-25 23:54:29 +02:00
rr-
87735110aa client/posts: add copying notes to clipboard
Saves some frustration when losing changes due to editing conflict
2017-08-25 23:53:51 +02:00
rr-
674d6c35d7 server/posts: add posts:view:featured privilege 2017-08-24 17:17:09 +02:00
rr-
4afece8d50 server/posts: add non-guessable IDs to post URLs 2017-08-24 17:17:09 +02:00
Michael Serajnik
90b0d77147 client/build: fix build, use uglify-es package directly 2017-08-11 17:36:10 +02:00
rr-
043b182b5e client/paging: add cues for qutebrowser 2017-06-25 17:47:40 +02:00
rr-
3c138685ea server/images: handle resizing errors 2017-05-03 12:10:04 +02:00
rr-
a1b762c65f api: fix getting cached disk usage with empty dirs 2017-05-01 20:26:53 +02:00
rr-
4bc58a3c95 server: lint 2017-04-24 23:30:53 +02:00
rr-
fea9a94945 client/routing: fix certain history bug
The bug could be reproduced as follows:

1. Navigate to /posts
2. Search for "test"
3. Navigate to /posts again
4. Refresh the page

The user should see plain post list, but instead they were seeing the
"test" search results again as if step 3 never happened.
2017-04-24 23:02:25 +02:00
rr-
467b4a7630 server/tags: fix nondeterministic siblings order 2017-04-24 22:48:11 +02:00
rr-
8e5798ab8c server/tests: fix content sync tests on postgres 2017-04-24 22:36:41 +02:00
rr-
e4aa38f159 server/search: fix errors on negative page offsets 2017-04-24 22:12:12 +02:00
rr-
ba4df16499 server/search: add search term escaping 2017-04-24 21:59:38 +02:00
rr-
9814b132c3 server/search: fix searching for ---
Allow only one negation sign.
Also throw an error if user searches only for "-".
2017-04-24 19:55:02 +02:00
rr-
0014721053 server/tags: fix retrieving many tags 2017-04-19 14:44:54 +02:00
rr-
77bf3bdc3c client/posts: add option to disable safety ratings 2017-03-30 20:50:12 +02:00
rr-
c2be365b6e config: remove unused values 2017-03-30 19:48:48 +02:00
rr-
01e1641475 config: improve comments 2017-03-30 19:47:14 +02:00
rr-
7044d2aaee server/posts: ignore old elasticsearch results 2017-03-12 18:30:42 +01:00