conga/luci/site/luci/Extensions homebase_adapt ...
CVSROOT: /cvs/cluster
Module name: conga
Changes by: rmccabe at sourceware.org 2008-02-05 20:59:38
Modified files:
luci/site/luci/Extensions: homebase_adapters.py
Log message:
Enforce password minimum length on the backend.
luci/site/luci/Extensions/homebase_adapters.py +3 -12
@@ -133,6 +133,9 @@ passwd = request.form['newPassword'] pwconfirm = request.form['newPasswordConfirm'] + if len(passwd) < 6: + return (False, { 'errors': [ 'Passwords must be@least six characters long.' ] }) + if passwd != pwconfirm: return (False, { 'errors': [ 'The passwords given do not match' ]})
@@ -203,12 +206,6 @@ except: cur_host_trusted = not check_certs - trust_shown = False - try: - trust_shown = request.form.has_key('trust_shown') - except: - trust_shown = False - cur_host_fp = None try: cur_host_fp = request.form['host_fingerprint'].strip()
@@ -402,12 +399,6 @@ % (e, str(e))) errors.append('The number of systems entered could not be determined.') - trust_shown = False - try: - trust_shown = request.form.has_key('trust_shown') - except: - trust_shown = False - incomplete = False i = 0 while i < num_storage: