Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/user_sql.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Łojewski <marcin.lojewski@mlojewski.me>2018-06-10 10:49:50 +0300
committerMarcin Łojewski <marcin.lojewski@mlojewski.me>2018-06-10 10:49:50 +0300
commit8a50badca486866a5606fe7cf092fde54e9ca9e0 (patch)
tree5cdfdda3f5080e1c1eb986ed9111e2bdb3ec67d9 /templates
parent28f7da0c0d45a76091b3331ef18fd1c3597522f0 (diff)
Hide password
Diffstat (limited to 'templates')
-rw-r--r--templates/admin.php6
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>