mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
client: improved build.js, use relative links
* Removed unnecessary require('config.js') calls * 'markdown.js' now uses rel. links in EntityPermalinkWrapper * 'password_reset.py' now generates rel. links * Removed 'Base URL' config parameter * Removed 'API URL' config parameter * 'build.js' no longer reads/requires config.yaml * Updated documentation * Removed unnecessary node packages used in 'build.js' abandon api_url parameter
This commit is contained in:
committed by
Marcin Kurczewski
parent
3972b902d8
commit
60ab9246c6
@ -21,8 +21,7 @@ def start_password_reset(
|
||||
'User %r hasn\'t supplied email. Cannot reset password.' % (
|
||||
user_name))
|
||||
token = auth.generate_authentication_token(user)
|
||||
url = '%s/password-reset/%s:%s' % (
|
||||
config.config['base_url'].rstrip('/'), user.name, token)
|
||||
url = '/password-reset/%s:%s' % (user.name, token)
|
||||
mailer.send_mail(
|
||||
'noreply@%s' % config.config['name'],
|
||||
user.email,
|
||||
|
@ -79,7 +79,7 @@ def validate_config() -> None:
|
||||
'Default rank %r is not on the list of known ranks' % (
|
||||
config.config['default_rank']))
|
||||
|
||||
for key in ['base_url', 'api_url', 'data_url', 'data_dir']:
|
||||
for key in ['data_url', 'data_dir']:
|
||||
if not config.config[key]:
|
||||
raise errors.ConfigError(
|
||||
'Service is not configured: %r is missing' % key)
|
||||
|
Reference in New Issue
Block a user