def post(self):
		username = self.request.get('username')
		password = self.request.get('password')

		#query for user data 
		q = Users.all()
		q.filter("username ="******"Invalid login.", 
								  username = username, 
								  not_relevant = True)
    def post(self):
        username = self.request.get('username')
        password = self.request.get('password')

        #query for user data
        q = Users.all()
        q.filter("username ="******"Invalid login.",
                    username=username,
                    not_relevant=True)
Ejemplo n.º 3
0
 def login(cls, name, pw):
     u = cls.by_name(name)
     if u and valid_pw(name, pw, u.password):
         return u
Ejemplo n.º 4
0
	def login(cls, name, pw):
		u = cls.by_name(name)
		if u and valid_pw(name, pw, u.password):
			return u