diff options
author | Marcin Łojewski <marcin.lojewski@mlojewski.me> | 2018-06-10 10:49:50 +0300 |
---|---|---|
committer | Marcin Łojewski <marcin.lojewski@mlojewski.me> | 2018-06-10 10:49:50 +0300 |
commit | 8a50badca486866a5606fe7cf092fde54e9ca9e0 (patch) | |
tree | 5cdfdda3f5080e1c1eb986ed9111e2bdb3ec67d9 /templates | |
parent | 28f7da0c0d45a76091b3331ef18fd1c3597522f0 (diff) |
Hide password
Diffstat (limited to 'templates')
-rw-r--r-- | templates/admin.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/admin.php b/templates/admin.php index 2e30058..fb227f9 100644 --- a/templates/admin.php +++ b/templates/admin.php @@ -24,11 +24,11 @@ use OCP\IL10N; script('user_sql', 'settings'); style('user_sql', 'settings'); -function print_text_input(IL10N $l, $id, $label, $value = "") +function print_text_input(IL10N $l, $id, $label, $value = "", $type = "text") { echo "<div><label for=\"$id\"><span>"; echo p($l->t($label)); - echo "</span><input type=\"text\" id=\"$id\" name=\"$id\" value=\""; + echo "</span><input type=\"$type\" id=\"$id\" name=\"$id\" value=\""; echo p($value); echo "\">"; echo "</label></div>"; @@ -98,7 +98,7 @@ function print_select_options( print_text_input($l, "db-hostname", "Hostname", $_['db.hostname']); print_text_input($l, "db-database", "Database", $_['db.database']); print_text_input($l, "db-username", "Username", $_['db.username']); - print_text_input($l, "db-password", "Password", $_['db.password']); ?> + print_text_input($l, "db-password", "Password", $_['db.password'], "password"); ?> <div class="button-right"> <input type="submit" id="user_sql-db_connection_verify" value="<?php p($l->t("Verify settings")); ?>"> </div> |