Harvey Tindall
3273607fc3
translation: add fallback option to langMeta
...
If set to a language code (e.g fr-fr), any missing strings will be
filled in from that language (if possible) rather than from the default
en-us. Currently not used, but could be useful in the future for
variations of the same language.
2021-04-13 18:34:13 +01:00
Harvey Tindall
55e21f8be3
accounts: add user enable/disable & emails
2021-04-12 21:28:36 +01:00
Harvey Tindall
9370913ace
add password reset link option
...
When enabled (in Settings > Password Resets), a magic link will be sent
instead of a PIN when the user tries reset their password. By doing
this the user doesn't have to keep the Jellyfin tab open to enter the
code.
2021-03-30 22:41:28 +01:00
Harvey Tindall
2451d69341
rewrite lang.go format and templateString
...
surprisingly not much faster than the originals.
2021-03-27 16:07:22 +00:00
Harvey Tindall
de92516d52
add updates section to setup
2021-03-20 18:00:01 +00:00
Harvey Tindall
1e9d184508
implement user expiry functionality
...
All works now, but i'll add a field on the accounts tab for users with
an expiry, as well as a 'disabled' badge.
2021-02-28 15:41:06 +00:00
Harvey Tindall
cc4e12c405
finish backend of custom emails
...
biggest bodge i've ever done but it works i guess.
2021-02-20 00:22:40 +00:00
Harvey Tindall
5c87d109a3
use descriptive variable names in email translations
...
in preparation for an email editor.
2021-02-19 17:50:50 +00:00
Harvey Tindall
456ef556b1
add inter-section dependency for settings
...
Currently used to hide all email sections when [email]/method is blank
(disabled).
2021-01-31 18:50:04 +00:00
Harvey Tindall
ee026714d4
Add optional email confirmation
...
If enabled, a confirmation email will be sent before the user can create
their account.
2021-01-30 19:19:12 +00:00
Harvey Tindall
3dd83bffbf
Merge branch 'new-setup'
...
Merge new setup wizard
This is much more up-to-date than the previous setup page, with a new
design and previously missing/new settings. Currently only available in
english (hopefully that changes soon).
also fixes conflict in _post.
2021-01-27 22:06:44 +00:00
Harvey Tindall
7baea9101e
Add general settings, ombi
...
host, port, theme, tls are included in general. Page theme changes with
setting. Fixed checkbox support messages. Split some cards into columns.
2021-01-27 21:35:41 +00:00
Harvey Tindall
8c871bc5fa
Add ts to link setting dependance
...
Also make store each setting as classes in a settings object, to make it
easier to serialize on submitting. Also, added
"substitute_jellyfin_strings", "no_username" and welcome_email.
2021-01-26 22:57:29 +00:00
Harvey Tindall
bf1e6230dc
split some strings into common file; use lang file to setup page
2021-01-25 21:26:54 +00:00
Harvey Tindall
8af1c13d7e
Display error messages on form
...
two new strings need translating in lang/form.
2021-01-25 18:01:18 +00:00
Harvey Tindall
ea262ca60b
add optional welcome email for new users
...
When enabled, an email with the server URL and username will be sent to
created users. Requested in #38 .
2021-01-24 15:19:58 +00:00
Harvey Tindall
cd2ea2e579
reload email after lang is loaded
...
fixes #37 .
2021-01-21 18:57:32 +00:00
Harvey Tindall
882a3467db
fix language settings loading
2021-01-21 14:16:03 +00:00
Harvey Tindall
e834445b0b
Restructure language loading to support incomplete translations
...
On startup, files are scanned and any missing values are replaced with
the english version.
2021-01-19 00:29:29 +00:00
Harvey Tindall
1aadd12006
move validationStrings out of strings in lang/form
2021-01-18 22:06:50 +00:00