Commit Graph

29 Commits

Author SHA1 Message Date
d615b21c7d Proper dynamic config reload
A bunch of options can now be changed without a restart as the config is
now guaranteed to be reloaded on change through the use of a RELOADCONFIG environment variable.
2020-07-12 19:53:04 +01:00
27169e4e0d Added dropdown menu for invites, multi-use invites, bump to 0.3.6
Dropdown menu includes time created, and for multi-use invites,
remaining uses, as well as a list of usernames created using the code.
2020-07-10 16:15:17 +01:00
94e69ad090 Small CSS tweaks, add days input 2020-07-07 15:30:16 +01:00
4fb99d1724 Cleanup, add theme options
Add theme options to settings to choose between light and dark.
2020-07-05 15:09:42 +01:00
ac60cc37da Add live reloading to some options, email fix
live reloading was intended for previous release, but needed some
tweaking. Settings that still require a restart are marked with an R.
Fixed issue where default values weren't being filled in on reload of
config that broke emails if settings were changed at all.
2020-06-30 21:24:07 +01:00
8e94f04d5a Add tooltips; cleanup 2020-06-30 18:57:04 +01:00
eb8e04d5a2 Added settings menu to UI
Currently all setting changes require a restart to apply, so there's a
bit of commented out code that i implemented before i realized.
Still needs tooltips for each setting.
2020-06-30 16:17:40 +01:00
52a11c3905 auth fix 2020-06-29 23:24:54 +01:00
52f9b5c963 added new /getConfig 2020-06-29 23:23:43 +01:00
4606415a38 added config-base file and config.ini generator 2020-06-29 22:05:40 +01:00
db1b707ec1 ignore users using alternative auth providers 2020-06-27 15:45:12 +01:00
4809331502 10.6.0 compatability, cleanup, removed dep
Automatically fixes '*ProviderId' in user templates for versions of
Jellyfin >= 10.6.0. Removed unnecessary configparser dependency, the one
actually used is part of python. jf_api now has an info attribute.
2020-06-27 15:38:51 +01:00
24045034c8 Formatted with black 2020-06-21 20:29:53 +01:00
bfbaca4094 Move to Poetry for deps and packaging
setup.py has been removed, and Poetry is now used to package for
install. This fixed an issue i had with uploading to PyPI, so one can
now run 'pip install jellyfin-accounts' to install.
2020-06-16 20:07:47 +01:00
f4f18d41ea Modularized JSON storage
user_template and other files are now accessed via JSONStorage, which
has dictionary like attributes for each file which can be used like a
dictionary, without the need to manually read and write the file. This
was done so that other storage types (e.g a database) can be added in
future.
2020-06-14 17:58:18 +01:00
39a27eb762 Added new user defaults setting to web ui
What previously had to be done through 'jf-accounts -g' can now be done
in the settings menu on the web ui.
2020-06-08 13:33:04 +01:00
674636b3a2 Add ability to set default homescreen layout
--get_policy is now --get_defaults, as it now allows you to store a
default user configuration and displayPreferences, which define the
layout of the home screen. It can also now display non publicly visible
accounts.
2020-06-07 15:00:31 +01:00
331dbc3d28 pw requirements now loaded with jinja over js
Originally i loaded the requirements through calling the web api in
javascript, but decided to switch it to jinja as i only recently found
out its capable of stuff more complicated than replacing strings.
2020-05-12 20:29:50 +01:00
81a80afdf2 Improved admin page 2020-05-05 11:37:13 +01:00
922987454f Add setup wizard
Added a setup wizard that appears on first run, or when no config dir is
found.
2020-05-02 18:32:58 +01:00
b9cefcc111 Added ability to log in with jellyfin credentials
The new jellyfin_login and admin_only allow anyone use their username and
password from jellyfin to login to the admin page, and restrict this to jellyfin
admins only, respectively.
2020-04-25 17:20:46 +01:00
9b8204eb12 Added extra auths with jellyfin to avoid expiry
Also fixed running multiple authentications on one Jellyfin object.
2020-04-22 21:54:31 +01:00
200ad24f96 Added user email modification to admin page
Pressing the user settings button brings up a list of all jellyfin
users, and allows you to add or change their stored email addresses.
Additionally, changed emails.json to use user ID instead of username.
The program automatically converts the file to the new format at start.
2020-04-20 20:37:39 +01:00
e8ad3f98d6 added option to send invite to an address
The admin page now has the option to send an invite to an email address.
Since there are now two email types (invites and pw resets), the new
sections have been added to config.ini, and email_template and
email_plaintext have been renamed to email_html and email_text
respectively.
2020-04-19 22:35:51 +01:00
dc6a3b9af2 Fixed invite alignment on admin page
Invites and the generate invite form are now displayed as cards. Invite
codes are displayed in a monospace font so they are always aligned with
eachother. The delete button is now inline with the rest of the text.
2020-04-17 15:24:56 +01:00
4df78a22c5 Fixed password validation on form; added lowercase option
Fixed an issue where some criteria on the form page wouldn't change to
red or green when one set one of them to 0 in the config. Also added a
lowercase option.
2020-04-16 14:33:23 +01:00
690de58e9f added password validation; changed create account layout
Password validation added, configurable under the [password_validation]
section in config.ini. Each criterion is displayed next to the form, in
red or green depending on whether the password passes it. form.html now
looks different because of it, whether it is enabled or disabled. An
error message is now displayed if the user already exists.
2020-04-14 21:31:44 +01:00
d22ba6133b Add pw reset support; add logging 2020-04-12 21:25:27 +01:00
d321726d62 first commit 2020-04-11 15:20:25 +01:00