changeset 5925:44105259c8f9

newaccount: remove outdated/superfluous code
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 19 Jan 2013 01:48:00 +0100
parents 9894a3344118
children ca07ae758965
files MoinMoin/action/newaccount.py
diffstat 1 files changed, 5 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/newaccount.py	Sat Jan 19 01:14:06 2013 +0100
+++ b/MoinMoin/action/newaccount.py	Sat Jan 19 01:48:00 2013 +0100
@@ -62,12 +62,11 @@
             return _("Password not acceptable: %s") % wikiutil.escape(pw_error)
 
     # Encode password
-    if password and not password.startswith('{SHA}'):
-        try:
-            theuser.enc_password = user.encodePassword(request.cfg, password)
-        except UnicodeError, err:
-            # Should never happen
-            return "Can't encode password: %s" % wikiutil.escape(str(err))
+    try:
+        theuser.enc_password = user.encodePassword(request.cfg, password)
+    except UnicodeError, err:
+        # Should never happen
+        return "Can't encode password: %s" % wikiutil.escape(str(err))
 
     # try to get the email, for new users it is required
     email = wikiutil.clean_input(form.get('email', ''))