1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-12-22 09:00:10 +00:00
Commit Graph

1857 Commits

Author SHA1 Message Date
ee3b421566
Fixed flaw with jellyfin_login; store refresh token in cookies
with jellyfin_login enabled, the username and password vals in the User
struct would be "". If you disabled 'required' on the login form, blank
username and password would allow you in.
2020-08-20 20:20:31 +01:00
d144077e62
Add refresh tokens for persistent login, logout button
the main JWT is stored temporarily, whereas the refresh token is stored
as a cookie and can only be used to obtain a new main token. Logout
button adds token to blocklist internally and deletes JWT and refresh
token from browser storage.
2020-08-19 22:30:54 +01:00
29a79a1ce1
Moved PKGBUILD to AUR, mention in readme 2020-08-19 16:43:37 +01:00
681d2ce38d
link to usr/bin, add license 2020-08-19 16:11:06 +01:00
cee5489da6
typo 2020-08-19 15:53:06 +01:00
b38af84b35
bump PKGBUILD to 0.1.4 2020-08-19 15:40:32 +01:00
8fc9ed1c3c
Improve mobile experience
the generate invite box now wraps into 1 column automatically.
the invite code is ellipsized on small displays.
the dropdown button has a large tappable area, and is aligned correctly.
2020-08-19 15:34:16 +01:00
6781316474
provide error message on login and display it nicely
server now provides a reason for login fail to the web ui, and displays
it inside the login button, which looks a lot nicer than the previously
used error box.
2020-08-19 14:50:16 +01:00
daf190f68b
Avoid panic on invalid password with jellyfin_login
jfId was assigned too early, before checking errors.
Also, handle 400 as well as 401 from jellyfin as an invalid password.
2020-08-19 14:36:15 +01:00
56478e96c9
create new css link to smoothly transition between themes
Previously, directly editing the <link> tag with the new file would
cause the page to have no stylesheet for a moment while the new file is
downloaded. A new element is now appended below the original instead,
which smoothens out the transition.
2020-08-19 14:31:41 +01:00
ec7609ed8c
Add debug flag; warning label for debug mode 2020-08-19 14:09:48 +01:00
6366239ec4
mention placing inside /opt 2020-08-19 12:31:16 +01:00
e893c9a234
Mention PKGBUILD 2020-08-19 12:28:39 +01:00
7879fd2581
Working PKGBUILD
Its a little rough but seems to work.
2020-08-19 12:25:43 +01:00
c778837593
Added install step to makefile; start PKGBUILD
Also added MIT License
2020-08-19 12:10:34 +01:00
af47cd9f0b
Improve README 2020-08-18 15:47:03 +01:00
151062fbc1
set gin mode before router initialization
this was previously set after the router was created, causing a debug
message every start.
2020-08-17 12:33:26 +01:00
abc51f2443
Shrunk dockerfile
Dockerfile now has separate build stage, and uses debian. Image now
sits at ~300MB.
2020-08-17 11:32:34 +01:00
8c4bd4541c
Added non interactive makefile option; fixed flags again
fixed another problem with the -data option, and added 'make headless'
for use in the dockerfile
2020-08-16 20:11:16 +01:00
8750efe101
added user caching with 30m timeout 2020-08-16 16:08:37 +01:00
252e13757b
Disable i386 builds
disabling this because building for darwin/386 is no longer available
and goreleaser hasn't picked up on this yet, i believe.
2020-08-16 14:55:39 +01:00
02183c7fcc
added -y option to prebuild scripts using node_bin
similar to apt, -y assumes yes to all questions, specifically if
node_bin is correct here. This is necessary for goreleaser, as it is not
interactive.
2020-08-16 14:39:47 +01:00
dd0eabf157
Upgrade packages 2020-08-16 14:33:10 +01:00
6436dba48f
fixed custom config and data paths
any specified custom data path was only being used for the config file.
All combinations of options should work together now.
2020-08-16 14:26:07 +01:00
bd8af153a9
disable generate button if duration is zero 2020-08-16 14:05:16 +01:00
fd766e7b1a
use app identifier instead of ctx
changing this because ctx is commonly used with the context package.
2020-08-16 13:36:54 +01:00
fffb3471d6
Merge branch 'main' of github.com:hrfee/jfa-go into main 2020-08-15 22:10:28 +01:00
19bd31d968
attempt at using a config struct instead of the ini library
Added script to convert config-base.json into a go struct, so that
access to config values and metadata could be unified and simpler. It
probably won't see any actual use though as mapping the ini into it is
painful.
2020-08-15 22:07:48 +01:00
39bf3ad7f1
Safe shutdown 2020-08-05 16:58:24 +01:00
ea5c2b3886
Delete nohup.out 2020-08-04 23:50:33 +01:00
8a8fe65192
Add windows build support from jf-accounts 2020-08-04 18:24:11 +01:00
5329f02768
add docker to readme 2020-08-03 20:10:45 +01:00
7b23545197
Added alpine and debian dockerfiles 2020-08-03 19:45:10 +01:00
54af15cc5a
Added makefile
Alternative to goreleaser.
2020-08-03 18:00:54 +01:00
8ed1662a2f
add pprof middleware 2020-08-03 00:13:09 +01:00
23dbcf33ae
reinitialize validator on settings change 2020-08-03 00:12:45 +01:00
25348a9b1a
ignore binary 2020-08-03 00:11:06 +01:00
3970cbef3f remove smtp notice 2020-08-02 17:25:33 +01:00
a38d56f362 add smtp email 2020-08-02 17:20:50 +01:00
f0be006e16 use goroutines for (most) emails
invite emails have been left alone so that email success message is
shown on web ui
2020-08-02 17:17:29 +01:00
699489e435 fixed static route for invites 2020-08-02 17:16:43 +01:00
e576616530 convert text to path to fix rendering on mobile 2020-08-02 13:16:43 +01:00
05c7b7156b Add notice about smtp 2020-08-02 13:13:33 +01:00
c72e1a1c63 Images, fixed "data" path 2020-08-02 02:11:50 +01:00
94b8495f02 Fixed goreleaser config 2020-08-02 00:36:27 +01:00
f508b65fa0 Added setup, self restarts 2020-08-02 00:05:35 +01:00
62621dabb9 CLI flags, start setting up goreleaser, add build scripts
Copied and fixed the build scripts from jf-accounts, added them to the
.goreleaser.yml. Also:
data directory now stored in user's config folder
Handle timeouts in jfapi
Maybe more i forgot about.
2020-08-01 21:20:02 +01:00
c4d4b395d5 Password resets 2020-08-01 16:31:08 +01:00
4e16f6fd48 make checkInvite check only one invite, invite daemon
checkInvite no longer loops over all invites and checks for expiry, that
functionality has moved to checkInvites. Couple more rogue print
statements removed aswell.
2020-08-01 15:22:30 +01:00
dba20bd3ea Add auth & gin logging, fixed dummy logger 2020-08-01 14:08:55 +01:00