コード例 #1
0
ファイル: app.py プロジェクト: jhsi/tymdrop
 def post(self):
     with form_validator('password'):
         password = self.get_argument('password')
     with form_validator('email'):
         email = self.get_argument('email')
         self.sign_up(email, password)
     self.write({'status':'success'})
コード例 #2
0
ファイル: app.py プロジェクト: jhsi/tymdrop
 def post(self):
     with form_validator('email'):
         email = self.get_argument('email')
     with form_validator('password'):
         password = self.get_argument('password')
     try:
         self.log_in(email, password)
         self.write({'status':'success'})
     except Exception, e:
         self.send_error(403,
             message="That email/password combination doesn't look right")