summaryrefslogtreecommitdiff
path: root/classes/dlg.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-12-03 20:46:27 +0300
committerAndrew Dolgov <[email protected]>2017-12-03 20:46:27 +0300
commit7c0eb1b6210a019926ec69179c81d545ac865b64 (patch)
tree8c57ea7b438156fbbebb880926e73e18e2137453 /classes/dlg.php
parent31e2811a637b1062eafc15a2f3b3b84de9534a0e (diff)
add defaultPasswordWarning nag dialog
Diffstat (limited to 'classes/dlg.php')
-rw-r--r--classes/dlg.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/classes/dlg.php b/classes/dlg.php
index 6f22c81e6..9ac5cd12f 100644
--- a/classes/dlg.php
+++ b/classes/dlg.php
@@ -185,4 +185,16 @@ class Dlg extends Handler_Protected {
//return;
}
+ function defaultPasswordWarning() {
+
+ print_warning(__("You are using default tt-rss password. Please change it in the Preferences (Personal data / Authentication)."));
+
+ print "<div align='center'>";
+ print "<button dojoType=\"dijit.form.Button\" onclick=\"gotoPreferences()\">".
+ __('Open Preferences')."</button> ";
+ print "<button dojoType=\"dijit.form.Button\"
+ onclick=\"return closeInfoBox()\">".
+ __('Close this window')."</button>";
+ print "</div>";
+ }
} \ No newline at end of file