def forget_password(sender, operate_time, ip, operator, operate_detail='重置密码'): account = Account(operate_time=operate_time, operator=operator, ip=ip, operate_detail=operate_detail, today=datetime.datetime.today().date()) account.save()
def change_password(sender, operate_time, ip, operate_detail='修改密码'): account = Account(operate_time=operate_time, operator=g.eog_user.email, ip=ip, operate_detail=operate_detail, today=datetime.datetime.today().date()) account.save()