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