old_contents: #!/usr/bin/env python
  # coding=utf-8
  
  
new_contents: #!/usr/bin/env python
  # coding=utf-8
  
  from webapp.web import BaseHandler
  
  
  class SigninHandler(BaseHandler):
  
      def post(self):
          email = self.get_arg("email")
          password = self.get_arg("password")
          if email:
              user = dbapi.User()
              if user.check_user(email, password) == 0:
                  self.set_secure_cookie('email', str(email))
                  self.redirect("/user")
  
          self.redirect("/")
  
subject: Update signin.py