forked from p15670423/monkey
Improved wording in configuration export related logs and UI
This commit is contained in:
parent
1125b0fe4b
commit
04a35a1e36
|
@ -63,7 +63,7 @@ class ConfigurationImport(flask_restful.Resource):
|
|||
return ResponseContents(
|
||||
import_status=ImportStatuses.INVALID_CONFIGURATION,
|
||||
message="Invalid configuration supplied. "
|
||||
"Maybe the format is outdated or the file is corrupted.",
|
||||
"Maybe the format is outdated or the file has been corrupted.",
|
||||
).form_response()
|
||||
except NoCredentialsError:
|
||||
return ResponseContents(
|
||||
|
|
|
@ -50,7 +50,7 @@ def decrypt_config(cyphertext: str, password: str) -> Dict:
|
|||
logger.info("Wrong password for configuration provided.")
|
||||
raise InvalidCredentialsError
|
||||
else:
|
||||
logger.info("Configuration is corrupted.")
|
||||
logger.info("The provided configuration file is corrupt.")
|
||||
raise ex
|
||||
plaintext_config = json.loads(dec_plaintext_config_stream.getvalue().decode("utf-8"))
|
||||
return plaintext_config
|
||||
|
|
|
@ -119,7 +119,7 @@ const ExportPlaintextChoiceField = (props: {
|
|||
/>
|
||||
<p className={`export-warning text-secondary`}>
|
||||
Configuration may contain stolen credentials or sensitive data.<br/>
|
||||
It is advised to use the <b>Encrypt with a password</b> option.
|
||||
It is recommended that you use the <b>Encrypt with a password</b> option.
|
||||
</p>
|
||||
</div>
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue