mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2025-05-03 03:44:56 +00:00
Update under attack response
Some checks are pending
Build and Publish Docker Image / main (push) Waiting to run
Run tests / tests_python (3.10) (push) Waiting to run
Run tests / tests_python (3.8) (push) Waiting to run
Run tests / tests_python (3.9) (push) Waiting to run
Run tests / test_docker_build (push) Waiting to run
Some checks are pending
Build and Publish Docker Image / main (push) Waiting to run
Run tests / tests_python (3.10) (push) Waiting to run
Run tests / tests_python (3.8) (push) Waiting to run
Run tests / tests_python (3.9) (push) Waiting to run
Run tests / test_docker_build (push) Waiting to run
This commit is contained in:
parent
ed8c6590c1
commit
6ac429fb54
1 changed files with 1 additions and 5 deletions
|
@ -365,11 +365,7 @@ def create_app(args):
|
|||
need_key = True
|
||||
|
||||
if args.under_attack and key_missing:
|
||||
abort(make_response(jsonify({
|
||||
'translatedText': secret.get_emoji(),
|
||||
'alternatives': [],
|
||||
'detectedLanguage': { 'confidence': 100, 'language': 'en' }
|
||||
}), 200))
|
||||
need_key = True
|
||||
|
||||
if need_key:
|
||||
description = _("Please contact the server operator to get an API key")
|
||||
|
|
Loading…
Add table
Reference in a new issue