[node-patches] Change in ovirt-node[master]: Add elif statement to check password == "" and confirmation ...

hadong0720 at gmail.com hadong0720 at gmail.com
Tue Feb 11 09:42:24 UTC 2014


hadong has uploaded a new change for review.

Change subject: Add elif statement to check password == "" and confirmation != ""
......................................................................

Add elif statement to check password == "" and confirmation != ""

Change-Id: Ief86f1d922111c1f5b2e5a9e1d990b0064b8a329
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1063188
Signed-off-by: hadong <hadong0720 at gmail.com>
---
M src/ovirt/node/utils/security.py
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/08/24308/1

diff --git a/src/ovirt/node/utils/security.py b/src/ovirt/node/utils/security.py
index f9bf0ec..4d6f8f1 100644
--- a/src/ovirt/node/utils/security.py
+++ b/src/ovirt/node/utils/security.py
@@ -68,7 +68,9 @@
         raise ValueError("Password must be at least %d characters" %
                          min_length)
     elif password != "" and confirmation == "":
-        raise ValueError("Please Confirm Password")
+        raise ValueError("Please Check Confirm Password Entry")
+    elif password == "" and confirmation != "":
+        raise ValueError("Please Check Password Entry")
     elif password != confirmation:
         raise ValueError("Passwords Do Not Match")
     else:


-- 
To view, visit http://gerrit.ovirt.org/24308
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ief86f1d922111c1f5b2e5a9e1d990b0064b8a329
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: hadong <hadong0720 at gmail.com>



More information about the node-patches mailing list