示例#1
0
 def login(cls, name, pw):
     u = cls.by_name(name)
     return Hashers.check_pw_hash( name, pw, u.password) and u