diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2012-08-09 13:47:27 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2012-08-09 13:47:27 +0200 |
commit | 800942ece74ac336c4a9213228f14406d7e494f7 (patch) | |
tree | b717c18b91245041f211ae96d670d7d4d41c5d4f /apps/files_encryption/js | |
parent | 5a261b5b8ffd01c34ce009a431a5587c548fa9a7 (diff) | |
download | nextcloud-server-800942ece74ac336c4a9213228f14406d7e494f7.tar.gz nextcloud-server-800942ece74ac336c4a9213228f14406d7e494f7.zip |
change key password when user switches from client to server side encryption.
make use of the keymanager class in changekeypasscode()
Diffstat (limited to 'apps/files_encryption/js')
-rw-r--r-- | apps/files_encryption/js/settings-personal.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/files_encryption/js/settings-personal.js b/apps/files_encryption/js/settings-personal.js index fad077a8dd7..f335cf7f880 100644 --- a/apps/files_encryption/js/settings-personal.js +++ b/apps/files_encryption/js/settings-personal.js @@ -18,14 +18,12 @@ $(document).ready(function(){ } } else if (server) { if (prevmode == 'client') { - OC.dialogs.form([{text:'login password', name:'newpasswd', type:'password'},{text:'Encryption password used on the client', name:'oldpasswd', type:'password'}],t('encryption', 'Please enter your passwords'), function(data) { + OC.dialogs.form([{text:'login password', name:'newpasswd', type:'password'},{text:'Encryption password used on the client', name:'oldpasswd', type:'password'}],t('encryption', 'Change encryption password to login password'), function(data) { $.post(OC.filePath('files_encryption', 'ajax', 'mode.php'), { mode: 'server', newpasswd: data[0].value, oldpasswd: data[1].value }, function(result) { if (result.status != 'success') { - console.log("change selection back to " + prevmode+'_encryption'); document.getElementById(prevmode+'_encryption').checked = true; - } else { + OC.dialogs.alert(t('encryption', 'Please check your passwords and try again'), t('encryption', 'Could not change encryption password to login password')) } - }); }); } else { |