mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2025-05-24 01:12:56 -04:00
Update under attack response
This commit is contained in:
parent
ed8c6590c1
commit
6ac429fb54
@ -365,11 +365,7 @@ def create_app(args):
|
|||||||
need_key = True
|
need_key = True
|
||||||
|
|
||||||
if args.under_attack and key_missing:
|
if args.under_attack and key_missing:
|
||||||
abort(make_response(jsonify({
|
need_key = True
|
||||||
'translatedText': secret.get_emoji(),
|
|
||||||
'alternatives': [],
|
|
||||||
'detectedLanguage': { 'confidence': 100, 'language': 'en' }
|
|
||||||
}), 200))
|
|
||||||
|
|
||||||
if need_key:
|
if need_key:
|
||||||
description = _("Please contact the server operator to get an API key")
|
description = _("Please contact the server operator to get an API key")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user