aboutsummaryrefslogtreecommitdiffstats
path: root/core/js/setup.js
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-01-23 00:39:11 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2014-01-23 00:39:11 +0100
commitf950ce82ae137977eeca5babe69d732ca55cbeaa (patch)
tree4c1b949c81b45ce081503343780eea91afd6b659 /core/js/setup.js
parent4ec6debe2b145b0df106c7e5a3f4ed0cf2885957 (diff)
parent4474421ada2a4b5642f1a081d6491d7858b3b9b0 (diff)
downloadnextcloud-server-f950ce82ae137977eeca5babe69d732ca55cbeaa.tar.gz
nextcloud-server-f950ce82ae137977eeca5babe69d732ca55cbeaa.zip
Merge branch 'master' into mobile-style
Conflicts: apps/files/js/files.js apps/files_sharing/css/public.css apps/files_sharing/js/public.js apps/files_sharing/templates/public.php
Diffstat (limited to 'core/js/setup.js')
-rw-r--r--core/js/setup.js22
1 files changed, 16 insertions, 6 deletions
diff --git a/core/js/setup.js b/core/js/setup.js
index 0863be35886..279b5fbebb9 100644
--- a/core/js/setup.js
+++ b/core/js/setup.js
@@ -7,9 +7,9 @@ $(document).ready(function() {
oracle:!!$('#hasOracle').val(),
mssql:!!$('#hasMSSQL').val()
};
-
+
$('#selectDbType').buttonset();
-
+
if($('#hasSQLite').val()){
$('#use_other_db').hide();
$('#use_oracle_db').hide();
@@ -63,17 +63,27 @@ $(document).ready(function() {
form.submit();
return false;
});
-
+
// Expand latest db settings if page was reloaded on error
var currentDbType = $('input[type="radio"]:checked').val();
-
+
if (currentDbType === undefined){
$('input[type="radio"]').first().click();
}
-
+
if (currentDbType === 'sqlite' || (dbtypes.sqlite && currentDbType === undefined)){
$('#datadirContent').hide(250);
$('#databaseField').hide(250);
}
-
+
+ $('#adminpass').strengthify({
+ zxcvbn: OC.linkTo('3rdparty','zxcvbn/js/zxcvbn.js'),
+ titles: [
+ t('core', 'Very weak password'),
+ t('core', 'Weak password'),
+ t('core', 'So-so password'),
+ t('core', 'Good password'),
+ t('core', 'Strong password')
+ ]
+ });
});