From 267c294e6ec9c96dbf29ca7f003639334d71ceba Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Mon, 13 Apr 2015 16:27:59 +0200 Subject: Improve Setup a bit --- pyload/config/Setup.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'pyload/config') diff --git a/pyload/config/Setup.py b/pyload/config/Setup.py index 3ce35bfe1..ce5a5fb88 100644 --- a/pyload/config/Setup.py +++ b/pyload/config/Setup.py @@ -301,6 +301,7 @@ class SetupAssistant(object): db.addUser(username, password) db.shutdown() + print print print _("External clients (GUI, CLI or other) need remote access to work over the network.") print _("However, if you only want to use the webinterface you may disable it to save ram.") @@ -447,10 +448,10 @@ class SetupAssistant(object): confpath = self.set_configdir(confdir) print if not confpath: - print _("Failed to change the current config path!") + print _("Failed to change the current CONFIG PATH!") print else: - print _("pyLoad config path successfully changed.") + print _("CONFIG PATH successfully changed to: %s") % configdir break @@ -507,20 +508,28 @@ class SetupAssistant(object): while p1 != p2: sys.stdout.write(_("Password: ")) p1 = getpass("").strip("\n\r") - print("passwd:'%s'" % p1) + if len(p1) < pwlen: + print print _("Password too short! Use at least %s symbols." % pwlen) + print continue elif not p1.isalnum(): + print print _("Password must be alphanumeric.") + print continue sys.stdout.write(_("Password (again): ")) p2 = getpass("").strip("\n\r") if p1 == p2: + if self.ask(_("Show password?"), self.no, bool=True): + print + print _("Your Password is: %s") % p1 return p1 else: + print print _("Passwords did not match.") while True: -- cgit v1.2.3