summaryrefslogtreecommitdiffstats
path: root/web/react
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-09-29 11:45:37 -0700
committer=Corey Hulen <corey@hulen.com>2015-09-29 11:45:37 -0700
commita15115d2c0f4fa9cd26c00059e39ae803126717e (patch)
treec08646e306a42babafe15133a3e786c3e52d7cf9 /web/react
parente937beb51bc2166e0cb6658d5523aa584d2dd807 (diff)
downloadchat-a15115d2c0f4fa9cd26c00059e39ae803126717e.tar.gz
chat-a15115d2c0f4fa9cd26c00059e39ae803126717e.tar.bz2
chat-a15115d2c0f4fa9cd26c00059e39ae803126717e.zip
PLT-409 add warning to at rest salt gen
Diffstat (limited to 'web/react')
-rw-r--r--web/react/components/admin_console/sql_settings.jsx6
1 files changed, 6 insertions, 0 deletions
diff --git a/web/react/components/admin_console/sql_settings.jsx b/web/react/components/admin_console/sql_settings.jsx
index 430a7453b..0e0ceb9af 100644
--- a/web/react/components/admin_console/sql_settings.jsx
+++ b/web/react/components/admin_console/sql_settings.jsx
@@ -73,6 +73,12 @@ export default class SqlSettings extends React.Component {
handleGenerate(e) {
e.preventDefault();
+
+ var cfm = global.window.confirm('Warning: re-generating this salt may cause some columns in the database to return empty results.');
+ if (cfm === false) {
+ return;
+ }
+
React.findDOMNode(this.refs.AtRestEncryptKey).value = crypto.randomBytes(256).toString('base64').substring(0, 32);
var s = {saveNeeded: true, serverError: this.state.serverError};
this.setState(s);