add defaultPasswordWarning nag dialog

This commit is contained in:
Andrew Dolgov
2017-12-03 20:46:27 +03:00
parent 31e2811a63
commit 7c0eb1b621
4 changed files with 48 additions and 3 deletions
+12
View File
@@ -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>";
}
}