def set_user_password(name, password): db.update('cot_user', where="name=$name", vars={'name': name}, password=webutil.hashpw(password) )
def new_user(name, email, password): db.insert('cot_user', name=name, email=email, password=webutil.hashpw(password) )