Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix the bug with user creates failing

  • Loading branch information...
commit ca3e834ca695e35525ed32bf1610731e047ff27e 1 parent b61d4c4
Brian Klug dustball authored

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. +4 4 main.py
8 main.py
@@ -41,7 +41,7 @@
41 41 else:
42 42 SPREEDLY_ACCOUNT = 'hackerdojo'
43 43 SPREEDLY_APIKEY = keymaster.get('spreedly:hackerdojo')
44   - PLAN_IDS = {'full': '1987', 'hardship': '2537', 'supporter': '1988', 'family': '3659', 'minor': '3660', 'full-check': '6479', 'hardship-check': '6480', 'worktrade': '6608' }
  44 + PLAN_IDS = {'full': '1987', 'hardship': '2537', 'supporter': '1988', 'family': '3659', 'minor': '3660', 'full-check': '6479', 'hardship-check': '6480', 'worktrade': '6608', 'comped': '15451' }
45 45
46 46 is_prod = not is_dev
47 47
@@ -199,8 +199,8 @@ def post(self, hash):
199 199 password = self.request.get('password')
200 200 if password != self.request.get('password_confirm'):
201 201 self.redirect(self.request.path + "?message=Passwords don't match")
202   - elif len(password) < 6:
203   - self.redirect(self.request.path + "?message=Password must be 6 characters or longer")
  202 + elif len(password) < 8:
  203 + self.redirect(self.request.path + "?message=Password must be 8 characters or longer")
204 204 else:
205 205 membership = Membership.get_by_hash(hash)
206 206 if membership.username:
@@ -278,7 +278,7 @@ def retry(countdown=None):
278 278 }), deadline=10)
279 279 membership.username = username
280 280 membership.put()
281   - logging.warn("CreateUserTask: I think that worked")
  281 + logging.warn("CreateUserTask: I think that worked: "+resp.content)
282 282 except urlfetch.DownloadError, e:
283 283 logging.warn("CreateUserTask: API response error or timeout, retrying")
284 284 return retry()

0 comments on commit ca3e834

Please sign in to comment.
Something went wrong with that request. Please try again.